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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 | 566 |
567 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 567 void SharedFunctionInfo::SharedFunctionInfoVerify() { |
568 CHECK(IsSharedFunctionInfo()); | 568 CHECK(IsSharedFunctionInfo()); |
569 VerifyObjectField(kNameOffset); | 569 VerifyObjectField(kNameOffset); |
570 VerifyObjectField(kCodeOffset); | 570 VerifyObjectField(kCodeOffset); |
571 VerifyObjectField(kOptimizedCodeMapOffset); | 571 VerifyObjectField(kOptimizedCodeMapOffset); |
572 VerifyObjectField(kFeedbackMetadataOffset); | 572 VerifyObjectField(kFeedbackMetadataOffset); |
573 VerifyObjectField(kScopeInfoOffset); | 573 VerifyObjectField(kScopeInfoOffset); |
574 VerifyObjectField(kInstanceClassNameOffset); | 574 VerifyObjectField(kInstanceClassNameOffset); |
575 CHECK(function_data()->IsUndefined(GetIsolate()) || IsApiFunction() || | 575 CHECK(function_data()->IsUndefined(GetIsolate()) || IsApiFunction() || |
576 HasBuiltinFunctionId() || HasBytecodeArray()); | 576 HasBytecodeArray()); |
577 VerifyObjectField(kFunctionDataOffset); | 577 VerifyObjectField(kFunctionDataOffset); |
578 VerifyObjectField(kScriptOffset); | 578 VerifyObjectField(kScriptOffset); |
579 VerifyObjectField(kDebugInfoOffset); | 579 VerifyObjectField(kDebugInfoOffset); |
| 580 CHECK(function_identifier()->IsUndefined(GetIsolate()) || |
| 581 HasBuiltinFunctionId() || HasInferredName()); |
| 582 VerifyObjectField(kFunctionIdentifierOffset); |
580 } | 583 } |
581 | 584 |
582 | 585 |
583 void JSGlobalProxy::JSGlobalProxyVerify() { | 586 void JSGlobalProxy::JSGlobalProxyVerify() { |
584 CHECK(IsJSGlobalProxy()); | 587 CHECK(IsJSGlobalProxy()); |
585 JSObjectVerify(); | 588 JSObjectVerify(); |
586 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); | 589 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); |
587 // Make sure that this object has no properties, elements. | 590 // Make sure that this object has no properties, elements. |
588 CHECK_EQ(0, properties()->length()); | 591 CHECK_EQ(0, properties()->length()); |
589 CHECK_EQ(0, FixedArray::cast(elements())->length()); | 592 CHECK_EQ(0, FixedArray::cast(elements())->length()); |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 | 1326 |
1324 // Both are done at the same time. | 1327 // Both are done at the same time. |
1325 CHECK_EQ(new_it.done(), old_it.done()); | 1328 CHECK_EQ(new_it.done(), old_it.done()); |
1326 } | 1329 } |
1327 | 1330 |
1328 | 1331 |
1329 #endif // DEBUG | 1332 #endif // DEBUG |
1330 | 1333 |
1331 } // namespace internal | 1334 } // namespace internal |
1332 } // namespace v8 | 1335 } // namespace v8 |
OLD | NEW |