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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/disasm.h" | 7 #include "src/disasm.h" |
8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" |
9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 VerifyObjectField(kDebugInfoOffset); | 540 VerifyObjectField(kDebugInfoOffset); |
541 } | 541 } |
542 | 542 |
543 | 543 |
544 void JSGlobalProxy::JSGlobalProxyVerify() { | 544 void JSGlobalProxy::JSGlobalProxyVerify() { |
545 CHECK(IsJSGlobalProxy()); | 545 CHECK(IsJSGlobalProxy()); |
546 JSObjectVerify(); | 546 JSObjectVerify(); |
547 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); | 547 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); |
548 // Make sure that this object has no properties, elements. | 548 // Make sure that this object has no properties, elements. |
549 CHECK_EQ(0, properties()->length()); | 549 CHECK_EQ(0, properties()->length()); |
550 CHECK(HasFastSmiElements()); | 550 CHECK_EQ(FAST_HOLEY_SMI_ELEMENTS, GetElementsKind()); |
551 CHECK_EQ(0, FixedArray::cast(elements())->length()); | 551 CHECK_EQ(0, FixedArray::cast(elements())->length()); |
552 } | 552 } |
553 | 553 |
554 | 554 |
555 void JSGlobalObject::JSGlobalObjectVerify() { | 555 void JSGlobalObject::JSGlobalObjectVerify() { |
556 CHECK(IsJSGlobalObject()); | 556 CHECK(IsJSGlobalObject()); |
557 JSObjectVerify(); | 557 JSObjectVerify(); |
558 for (int i = GlobalObject::kBuiltinsOffset; | 558 for (int i = GlobalObject::kBuiltinsOffset; |
559 i < JSGlobalObject::kSize; | 559 i < JSGlobalObject::kSize; |
560 i += kPointerSize) { | 560 i += kPointerSize) { |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 for (int i = 0; i < number_of_transitions(); ++i) { | 1196 for (int i = 0; i < number_of_transitions(); ++i) { |
1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1198 } | 1198 } |
1199 return true; | 1199 return true; |
1200 } | 1200 } |
1201 | 1201 |
1202 | 1202 |
1203 #endif // DEBUG | 1203 #endif // DEBUG |
1204 | 1204 |
1205 } } // namespace v8::internal | 1205 } } // namespace v8::internal |
OLD | NEW |