| 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 CHECK(IsForeign()); | 871 CHECK(IsForeign()); |
| 872 } | 872 } |
| 873 | 873 |
| 874 | 874 |
| 875 void Box::BoxVerify() { | 875 void Box::BoxVerify() { |
| 876 CHECK(IsBox()); | 876 CHECK(IsBox()); |
| 877 value()->ObjectVerify(); | 877 value()->ObjectVerify(); |
| 878 } | 878 } |
| 879 | 879 |
| 880 | 880 |
| 881 void PrototypeInfo::PrototypeInfoVerify() { |
| 882 CHECK(IsPrototypeInfo()); |
| 883 CHECK(prototype_object()->IsJSObject()); |
| 884 if (prototype_users()->IsWeakFixedArray()) { |
| 885 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
| 886 } else { |
| 887 CHECK(prototype_users()->IsSmi()); |
| 888 } |
| 889 CHECK(validity_cell()->IsCell() || validity_cell()->IsCell()); |
| 890 } |
| 891 |
| 892 |
| 881 void AccessorInfo::AccessorInfoVerify() { | 893 void AccessorInfo::AccessorInfoVerify() { |
| 882 VerifyPointer(name()); | 894 VerifyPointer(name()); |
| 883 VerifyPointer(flag()); | 895 VerifyPointer(flag()); |
| 884 VerifyPointer(expected_receiver_type()); | 896 VerifyPointer(expected_receiver_type()); |
| 885 } | 897 } |
| 886 | 898 |
| 887 | 899 |
| 888 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { | 900 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { |
| 889 CHECK(IsExecutableAccessorInfo()); | 901 CHECK(IsExecutableAccessorInfo()); |
| 890 AccessorInfoVerify(); | 902 AccessorInfoVerify(); |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 ? it.rinfo()->target_cell() | 1281 ? it.rinfo()->target_cell() |
| 1270 : it.rinfo()->target_object(); | 1282 : it.rinfo()->target_object(); |
| 1271 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1283 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
| 1272 } | 1284 } |
| 1273 } | 1285 } |
| 1274 | 1286 |
| 1275 | 1287 |
| 1276 #endif // DEBUG | 1288 #endif // DEBUG |
| 1277 | 1289 |
| 1278 } } // namespace v8::internal | 1290 } } // namespace v8::internal |
| OLD | NEW |