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/field-type.h" | 10 #include "src/field-type.h" |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 next_function_link()->IsJSFunction()); | 559 next_function_link()->IsJSFunction()); |
560 CHECK(map()->is_callable()); | 560 CHECK(map()->is_callable()); |
561 } | 561 } |
562 | 562 |
563 | 563 |
564 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 564 void SharedFunctionInfo::SharedFunctionInfoVerify() { |
565 CHECK(IsSharedFunctionInfo()); | 565 CHECK(IsSharedFunctionInfo()); |
566 VerifyObjectField(kNameOffset); | 566 VerifyObjectField(kNameOffset); |
567 VerifyObjectField(kCodeOffset); | 567 VerifyObjectField(kCodeOffset); |
568 VerifyObjectField(kOptimizedCodeMapOffset); | 568 VerifyObjectField(kOptimizedCodeMapOffset); |
569 VerifyObjectField(kFeedbackVectorOffset); | 569 VerifyObjectField(kFeedbackMetadataOffset); |
570 VerifyObjectField(kScopeInfoOffset); | 570 VerifyObjectField(kScopeInfoOffset); |
571 VerifyObjectField(kInstanceClassNameOffset); | 571 VerifyObjectField(kInstanceClassNameOffset); |
572 CHECK(function_data()->IsUndefined() || IsApiFunction() || | 572 CHECK(function_data()->IsUndefined() || IsApiFunction() || |
573 HasBuiltinFunctionId() || HasBytecodeArray()); | 573 HasBuiltinFunctionId() || HasBytecodeArray()); |
574 VerifyObjectField(kFunctionDataOffset); | 574 VerifyObjectField(kFunctionDataOffset); |
575 VerifyObjectField(kScriptOffset); | 575 VerifyObjectField(kScriptOffset); |
576 VerifyObjectField(kDebugInfoOffset); | 576 VerifyObjectField(kDebugInfoOffset); |
577 } | 577 } |
578 | 578 |
579 | 579 |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 | 1316 |
1317 // Both are done at the same time. | 1317 // Both are done at the same time. |
1318 CHECK_EQ(new_it.done(), old_it.done()); | 1318 CHECK_EQ(new_it.done(), old_it.done()); |
1319 } | 1319 } |
1320 | 1320 |
1321 | 1321 |
1322 #endif // DEBUG | 1322 #endif // DEBUG |
1323 | 1323 |
1324 } // namespace internal | 1324 } // namespace internal |
1325 } // namespace v8 | 1325 } // namespace v8 |
OLD | NEW |