OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 CHECK(code()->IsCode()); | 495 CHECK(code()->IsCode()); |
496 CHECK(next_function_link()->IsUndefined() || | 496 CHECK(next_function_link()->IsUndefined() || |
497 next_function_link()->IsJSFunction()); | 497 next_function_link()->IsJSFunction()); |
498 } | 498 } |
499 | 499 |
500 | 500 |
501 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 501 void SharedFunctionInfo::SharedFunctionInfoVerify() { |
502 CHECK(IsSharedFunctionInfo()); | 502 CHECK(IsSharedFunctionInfo()); |
503 VerifyObjectField(kNameOffset); | 503 VerifyObjectField(kNameOffset); |
504 VerifyObjectField(kCodeOffset); | 504 VerifyObjectField(kCodeOffset); |
| 505 VerifyObjectField(kOptimizedCodeMapOffset); |
505 VerifyObjectField(kScopeInfoOffset); | 506 VerifyObjectField(kScopeInfoOffset); |
506 VerifyObjectField(kInstanceClassNameOffset); | 507 VerifyObjectField(kInstanceClassNameOffset); |
507 VerifyObjectField(kFunctionDataOffset); | 508 VerifyObjectField(kFunctionDataOffset); |
508 VerifyObjectField(kScriptOffset); | 509 VerifyObjectField(kScriptOffset); |
509 VerifyObjectField(kDebugInfoOffset); | 510 VerifyObjectField(kDebugInfoOffset); |
510 } | 511 } |
511 | 512 |
512 | 513 |
513 void JSGlobalProxy::JSGlobalProxyVerify() { | 514 void JSGlobalProxy::JSGlobalProxyVerify() { |
514 CHECK(IsJSGlobalProxy()); | 515 CHECK(IsJSGlobalProxy()); |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 FixedArray* proto_transitions = prototype_transitions(); | 1010 FixedArray* proto_transitions = prototype_transitions(); |
1010 MemsetPointer(proto_transitions->data_start(), | 1011 MemsetPointer(proto_transitions->data_start(), |
1011 GetHeap()->the_hole_value(), | 1012 GetHeap()->the_hole_value(), |
1012 proto_transitions->length()); | 1013 proto_transitions->length()); |
1013 } | 1014 } |
1014 | 1015 |
1015 | 1016 |
1016 #endif // DEBUG | 1017 #endif // DEBUG |
1017 | 1018 |
1018 } } // namespace v8::internal | 1019 } } // namespace v8::internal |
OLD | NEW |