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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 void JSWeakMap::JSWeakMapVerify() { | 778 void JSWeakMap::JSWeakMapVerify() { |
779 CHECK(IsJSWeakMap()); | 779 CHECK(IsJSWeakMap()); |
780 JSObjectVerify(); | 780 JSObjectVerify(); |
781 VerifyHeapPointer(table()); | 781 VerifyHeapPointer(table()); |
782 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); | 782 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); |
783 } | 783 } |
784 | 784 |
785 void JSStringIterator::JSStringIteratorVerify() { | 785 void JSStringIterator::JSStringIteratorVerify() { |
786 CHECK(IsJSStringIterator()); | 786 CHECK(IsJSStringIterator()); |
787 JSObjectVerify(); | 787 JSObjectVerify(); |
788 CHECK(string()->IsSeqString() || string()->IsExternalString()); | 788 CHECK(string()->IsString()); |
789 | |
790 CHECK_GE(index(), 0); | 789 CHECK_GE(index(), 0); |
791 CHECK_LE(index(), String::kMaxLength); | 790 CHECK_LE(index(), String::kMaxLength); |
792 } | 791 } |
793 | 792 |
794 void JSWeakSet::JSWeakSetVerify() { | 793 void JSWeakSet::JSWeakSetVerify() { |
795 CHECK(IsJSWeakSet()); | 794 CHECK(IsJSWeakSet()); |
796 JSObjectVerify(); | 795 JSObjectVerify(); |
797 VerifyHeapPointer(table()); | 796 VerifyHeapPointer(table()); |
798 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); | 797 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); |
799 } | 798 } |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 | 1363 |
1365 // Both are done at the same time. | 1364 // Both are done at the same time. |
1366 CHECK_EQ(new_it.done(), old_it.done()); | 1365 CHECK_EQ(new_it.done(), old_it.done()); |
1367 } | 1366 } |
1368 | 1367 |
1369 | 1368 |
1370 #endif // DEBUG | 1369 #endif // DEBUG |
1371 | 1370 |
1372 } // namespace internal | 1371 } // namespace internal |
1373 } // namespace v8 | 1372 } // namespace v8 |
OLD | NEW |