| 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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 void PrototypeInfo::PrototypeInfoVerify() { | 960 void PrototypeInfo::PrototypeInfoVerify() { |
| 961 CHECK(IsPrototypeInfo()); | 961 CHECK(IsPrototypeInfo()); |
| 962 if (prototype_users()->IsWeakFixedArray()) { | 962 if (prototype_users()->IsWeakFixedArray()) { |
| 963 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 963 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
| 964 } else { | 964 } else { |
| 965 CHECK(prototype_users()->IsSmi()); | 965 CHECK(prototype_users()->IsSmi()); |
| 966 } | 966 } |
| 967 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); | 967 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); |
| 968 } | 968 } |
| 969 | 969 |
| 970 void Tuple3::Tuple3Verify() { |
| 971 CHECK(IsTuple3()); |
| 972 VerifyObjectField(kValue1Offset); |
| 973 VerifyObjectField(kValue2Offset); |
| 974 VerifyObjectField(kValue3Offset); |
| 975 } |
| 976 |
| 970 void ContextExtension::ContextExtensionVerify() { | 977 void ContextExtension::ContextExtensionVerify() { |
| 971 CHECK(IsContextExtension()); | 978 CHECK(IsContextExtension()); |
| 972 VerifyObjectField(kScopeInfoOffset); | 979 VerifyObjectField(kScopeInfoOffset); |
| 973 VerifyObjectField(kExtensionOffset); | 980 VerifyObjectField(kExtensionOffset); |
| 974 } | 981 } |
| 975 | 982 |
| 976 | 983 |
| 977 void AccessorInfo::AccessorInfoVerify() { | 984 void AccessorInfo::AccessorInfoVerify() { |
| 978 CHECK(IsAccessorInfo()); | 985 CHECK(IsAccessorInfo()); |
| 979 VerifyPointer(name()); | 986 VerifyPointer(name()); |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 | 1395 |
| 1389 // Both are done at the same time. | 1396 // Both are done at the same time. |
| 1390 CHECK_EQ(new_it.done(), old_it.done()); | 1397 CHECK_EQ(new_it.done(), old_it.done()); |
| 1391 } | 1398 } |
| 1392 | 1399 |
| 1393 | 1400 |
| 1394 #endif // DEBUG | 1401 #endif // DEBUG |
| 1395 | 1402 |
| 1396 } // namespace internal | 1403 } // namespace internal |
| 1397 } // namespace v8 | 1404 } // namespace v8 |
| OLD | NEW |