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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "disassembler.h" | 7 #include "disassembler.h" |
8 #include "disasm.h" | 8 #include "disasm.h" |
9 #include "jsregexp.h" | 9 #include "jsregexp.h" |
10 #include "macro-assembler.h" | 10 #include "macro-assembler.h" |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 VerifyObjectField(kDebugInfoOffset); | 535 VerifyObjectField(kDebugInfoOffset); |
536 } | 536 } |
537 | 537 |
538 | 538 |
539 void JSGlobalProxy::JSGlobalProxyVerify() { | 539 void JSGlobalProxy::JSGlobalProxyVerify() { |
540 CHECK(IsJSGlobalProxy()); | 540 CHECK(IsJSGlobalProxy()); |
541 JSObjectVerify(); | 541 JSObjectVerify(); |
542 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); | 542 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); |
543 // Make sure that this object has no properties, elements. | 543 // Make sure that this object has no properties, elements. |
544 CHECK_EQ(0, properties()->length()); | 544 CHECK_EQ(0, properties()->length()); |
545 CHECK(HasFastObjectElements()); | 545 CHECK(HasFastSmiElements()); |
546 CHECK_EQ(0, FixedArray::cast(elements())->length()); | 546 CHECK_EQ(0, FixedArray::cast(elements())->length()); |
547 } | 547 } |
548 | 548 |
549 | 549 |
550 void JSGlobalObject::JSGlobalObjectVerify() { | 550 void JSGlobalObject::JSGlobalObjectVerify() { |
551 CHECK(IsJSGlobalObject()); | 551 CHECK(IsJSGlobalObject()); |
552 JSObjectVerify(); | 552 JSObjectVerify(); |
553 for (int i = GlobalObject::kBuiltinsOffset; | 553 for (int i = GlobalObject::kBuiltinsOffset; |
554 i < JSGlobalObject::kSize; | 554 i < JSGlobalObject::kSize; |
555 i += kPointerSize) { | 555 i += kPointerSize) { |
(...skipping 640 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 |