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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 | 636 |
637 void Cell::CellVerify() { | 637 void Cell::CellVerify() { |
638 CHECK(IsCell()); | 638 CHECK(IsCell()); |
639 VerifyObjectField(kValueOffset); | 639 VerifyObjectField(kValueOffset); |
640 } | 640 } |
641 | 641 |
642 | 642 |
643 void PropertyCell::PropertyCellVerify() { | 643 void PropertyCell::PropertyCellVerify() { |
644 CHECK(IsPropertyCell()); | 644 CHECK(IsPropertyCell()); |
645 VerifyObjectField(kValueOffset); | 645 VerifyObjectField(kValueOffset); |
646 VerifyObjectField(kTypeOffset); | |
647 } | 646 } |
648 | 647 |
649 | 648 |
650 void WeakCell::WeakCellVerify() { | 649 void WeakCell::WeakCellVerify() { |
651 CHECK(IsWeakCell()); | 650 CHECK(IsWeakCell()); |
652 VerifyObjectField(kValueOffset); | 651 VerifyObjectField(kValueOffset); |
653 VerifyObjectField(kNextOffset); | 652 VerifyObjectField(kNextOffset); |
654 } | 653 } |
655 | 654 |
656 | 655 |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 ? it.rinfo()->target_cell() | 1269 ? it.rinfo()->target_cell() |
1271 : it.rinfo()->target_object(); | 1270 : it.rinfo()->target_object(); |
1272 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1271 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
1273 } | 1272 } |
1274 } | 1273 } |
1275 | 1274 |
1276 | 1275 |
1277 #endif // DEBUG | 1276 #endif // DEBUG |
1278 | 1277 |
1279 } } // namespace v8::internal | 1278 } } // namespace v8::internal |
OLD | NEW |