OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/disasm.h" | 8 #include "src/disasm.h" |
9 #include "src/disassembler.h" | 9 #include "src/disassembler.h" |
10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 next_function_link()->IsJSFunction()); | 570 next_function_link()->IsJSFunction()); |
571 CHECK(map()->is_callable()); | 571 CHECK(map()->is_callable()); |
572 } | 572 } |
573 | 573 |
574 | 574 |
575 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 575 void SharedFunctionInfo::SharedFunctionInfoVerify() { |
576 CHECK(IsSharedFunctionInfo()); | 576 CHECK(IsSharedFunctionInfo()); |
577 VerifyObjectField(kNameOffset); | 577 VerifyObjectField(kNameOffset); |
578 VerifyObjectField(kCodeOffset); | 578 VerifyObjectField(kCodeOffset); |
579 VerifyObjectField(kOptimizedCodeMapOffset); | 579 VerifyObjectField(kOptimizedCodeMapOffset); |
580 VerifyObjectField(kFeedbackVectorOffset); | 580 VerifyObjectField(kFeedbackMetadataOffset); |
581 VerifyObjectField(kScopeInfoOffset); | 581 VerifyObjectField(kScopeInfoOffset); |
582 VerifyObjectField(kInstanceClassNameOffset); | 582 VerifyObjectField(kInstanceClassNameOffset); |
583 CHECK(function_data()->IsUndefined() || IsApiFunction() || | 583 CHECK(function_data()->IsUndefined() || IsApiFunction() || |
584 HasBuiltinFunctionId() || HasBytecodeArray()); | 584 HasBuiltinFunctionId() || HasBytecodeArray()); |
585 VerifyObjectField(kFunctionDataOffset); | 585 VerifyObjectField(kFunctionDataOffset); |
586 VerifyObjectField(kScriptOffset); | 586 VerifyObjectField(kScriptOffset); |
587 VerifyObjectField(kDebugInfoOffset); | 587 VerifyObjectField(kDebugInfoOffset); |
588 } | 588 } |
589 | 589 |
590 | 590 |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 | 1330 |
1331 // Both are done at the same time. | 1331 // Both are done at the same time. |
1332 CHECK_EQ(new_it.done(), old_it.done()); | 1332 CHECK_EQ(new_it.done(), old_it.done()); |
1333 } | 1333 } |
1334 | 1334 |
1335 | 1335 |
1336 #endif // DEBUG | 1336 #endif // DEBUG |
1337 | 1337 |
1338 } // namespace internal | 1338 } // namespace internal |
1339 } // namespace v8 | 1339 } // namespace v8 |
OLD | NEW |