| 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 | 875 |
| 876 | 876 |
| 877 void Box::BoxVerify() { | 877 void Box::BoxVerify() { |
| 878 CHECK(IsBox()); | 878 CHECK(IsBox()); |
| 879 value()->ObjectVerify(); | 879 value()->ObjectVerify(); |
| 880 } | 880 } |
| 881 | 881 |
| 882 | 882 |
| 883 void PrototypeInfo::PrototypeInfoVerify() { | 883 void PrototypeInfo::PrototypeInfoVerify() { |
| 884 CHECK(IsPrototypeInfo()); | 884 CHECK(IsPrototypeInfo()); |
| 885 CHECK(prototype_object()->IsJSObject()); | 885 CHECK(prototype_object()->IsJSObject() || prototype_object()->IsSmi()); |
| 886 if (prototype_users()->IsWeakFixedArray()) { | 886 if (prototype_users()->IsWeakFixedArray()) { |
| 887 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 887 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
| 888 } else { | 888 } else { |
| 889 CHECK(prototype_users()->IsSmi()); | 889 CHECK(prototype_users()->IsSmi()); |
| 890 } | 890 } |
| 891 CHECK(validity_cell()->IsCell() || validity_cell()->IsCell()); | 891 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); |
| 892 } | 892 } |
| 893 | 893 |
| 894 | 894 |
| 895 void AccessorInfo::AccessorInfoVerify() { | 895 void AccessorInfo::AccessorInfoVerify() { |
| 896 VerifyPointer(name()); | 896 VerifyPointer(name()); |
| 897 VerifyPointer(flag()); | 897 VerifyPointer(flag()); |
| 898 VerifyPointer(expected_receiver_type()); | 898 VerifyPointer(expected_receiver_type()); |
| 899 } | 899 } |
| 900 | 900 |
| 901 | 901 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 ? it.rinfo()->target_cell() | 1283 ? it.rinfo()->target_cell() |
| 1284 : it.rinfo()->target_object(); | 1284 : it.rinfo()->target_object(); |
| 1285 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1285 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
| 1286 } | 1286 } |
| 1287 } | 1287 } |
| 1288 | 1288 |
| 1289 | 1289 |
| 1290 #endif // DEBUG | 1290 #endif // DEBUG |
| 1291 | 1291 |
| 1292 } } // namespace v8::internal | 1292 } } // namespace v8::internal |
| OLD | NEW |