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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 VerifyObjectField(kDebugInfoOffset); | 560 VerifyObjectField(kDebugInfoOffset); |
561 } | 561 } |
562 | 562 |
563 | 563 |
564 void JSGlobalProxy::JSGlobalProxyVerify() { | 564 void JSGlobalProxy::JSGlobalProxyVerify() { |
565 CHECK(IsJSGlobalProxy()); | 565 CHECK(IsJSGlobalProxy()); |
566 JSObjectVerify(); | 566 JSObjectVerify(); |
567 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); | 567 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); |
568 // Make sure that this object has no properties, elements. | 568 // Make sure that this object has no properties, elements. |
569 CHECK_EQ(0, properties()->length()); | 569 CHECK_EQ(0, properties()->length()); |
570 CHECK_EQ(FAST_HOLEY_SMI_ELEMENTS, GetElementsKind()); | |
571 CHECK_EQ(0, FixedArray::cast(elements())->length()); | 570 CHECK_EQ(0, FixedArray::cast(elements())->length()); |
572 } | 571 } |
573 | 572 |
574 | 573 |
575 void JSGlobalObject::JSGlobalObjectVerify() { | 574 void JSGlobalObject::JSGlobalObjectVerify() { |
576 CHECK(IsJSGlobalObject()); | 575 CHECK(IsJSGlobalObject()); |
577 JSObjectVerify(); | 576 JSObjectVerify(); |
578 for (int i = GlobalObject::kBuiltinsOffset; | 577 for (int i = GlobalObject::kBuiltinsOffset; |
579 i < JSGlobalObject::kSize; | 578 i < JSGlobalObject::kSize; |
580 i += kPointerSize) { | 579 i += kPointerSize) { |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 while (map != heap->roots_array_start()[i++]) { | 1258 while (map != heap->roots_array_start()[i++]) { |
1260 CHECK_LT(i, Heap::kStrongRootListLength); | 1259 CHECK_LT(i, Heap::kStrongRootListLength); |
1261 } | 1260 } |
1262 } | 1261 } |
1263 } | 1262 } |
1264 | 1263 |
1265 | 1264 |
1266 #endif // DEBUG | 1265 #endif // DEBUG |
1267 | 1266 |
1268 } } // namespace v8::internal | 1267 } } // namespace v8::internal |
OLD | NEW |