| 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); | 694 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); |
| 695 // TODO(arv): Verify OrderedHashTable too. | 695 // TODO(arv): Verify OrderedHashTable too. |
| 696 } | 696 } |
| 697 | 697 |
| 698 | 698 |
| 699 void JSSetIterator::JSSetIteratorVerify() { | 699 void JSSetIterator::JSSetIteratorVerify() { |
| 700 CHECK(IsJSSetIterator()); | 700 CHECK(IsJSSetIterator()); |
| 701 JSObjectVerify(); | 701 JSObjectVerify(); |
| 702 VerifyHeapPointer(table()); | 702 VerifyHeapPointer(table()); |
| 703 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); | 703 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); |
| 704 CHECK(index()->IsSmi()); | 704 CHECK(index()->IsSmi() || index()->IsUndefined()); |
| 705 CHECK(kind()->IsSmi()); | 705 CHECK(kind()->IsSmi() || kind()->IsUndefined()); |
| 706 } | 706 } |
| 707 | 707 |
| 708 | 708 |
| 709 void JSMapIterator::JSMapIteratorVerify() { | 709 void JSMapIterator::JSMapIteratorVerify() { |
| 710 CHECK(IsJSMapIterator()); | 710 CHECK(IsJSMapIterator()); |
| 711 JSObjectVerify(); | 711 JSObjectVerify(); |
| 712 VerifyHeapPointer(table()); | 712 VerifyHeapPointer(table()); |
| 713 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); | 713 CHECK(table()->IsOrderedHashTable() || table()->IsUndefined()); |
| 714 CHECK(index()->IsSmi()); | 714 CHECK(index()->IsSmi() || index()->IsUndefined()); |
| 715 CHECK(kind()->IsSmi()); | 715 CHECK(kind()->IsSmi() || kind()->IsUndefined()); |
| 716 } | 716 } |
| 717 | 717 |
| 718 | 718 |
| 719 void JSWeakMap::JSWeakMapVerify() { | 719 void JSWeakMap::JSWeakMapVerify() { |
| 720 CHECK(IsJSWeakMap()); | 720 CHECK(IsJSWeakMap()); |
| 721 JSObjectVerify(); | 721 JSObjectVerify(); |
| 722 VerifyHeapPointer(table()); | 722 VerifyHeapPointer(table()); |
| 723 CHECK(table()->IsHashTable() || table()->IsUndefined()); | 723 CHECK(table()->IsHashTable() || table()->IsUndefined()); |
| 724 } | 724 } |
| 725 | 725 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 for (int i = 0; i < number_of_transitions(); ++i) { | 1184 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1185 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1185 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1186 } | 1186 } |
| 1187 return true; | 1187 return true; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 | 1190 |
| 1191 #endif // DEBUG | 1191 #endif // DEBUG |
| 1192 | 1192 |
| 1193 } } // namespace v8::internal | 1193 } } // namespace v8::internal |
| OLD | NEW |