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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 CHECK(IsPrototypeInfo()); | 1071 CHECK(IsPrototypeInfo()); |
1072 CHECK(weak_cell()->IsWeakCell() || weak_cell()->IsUndefined(GetIsolate())); | 1072 CHECK(weak_cell()->IsWeakCell() || weak_cell()->IsUndefined(GetIsolate())); |
1073 if (prototype_users()->IsWeakFixedArray()) { | 1073 if (prototype_users()->IsWeakFixedArray()) { |
1074 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 1074 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
1075 } else { | 1075 } else { |
1076 CHECK(prototype_users()->IsSmi()); | 1076 CHECK(prototype_users()->IsSmi()); |
1077 } | 1077 } |
1078 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); | 1078 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); |
1079 } | 1079 } |
1080 | 1080 |
1081 void Tuple2::Tuple2Verify() { | |
1082 CHECK(IsTuple2()); | |
1083 VerifyObjectField(kValue1Offset); | |
1084 VerifyObjectField(kValue2Offset); | |
1085 } | |
1086 | |
1087 void Tuple3::Tuple3Verify() { | 1081 void Tuple3::Tuple3Verify() { |
1088 CHECK(IsTuple3()); | 1082 CHECK(IsTuple3()); |
1089 VerifyObjectField(kValue1Offset); | 1083 VerifyObjectField(kValue1Offset); |
1090 VerifyObjectField(kValue2Offset); | 1084 VerifyObjectField(kValue2Offset); |
1091 VerifyObjectField(kValue3Offset); | 1085 VerifyObjectField(kValue3Offset); |
1092 } | 1086 } |
1093 | 1087 |
1094 void ContextExtension::ContextExtensionVerify() { | 1088 void ContextExtension::ContextExtensionVerify() { |
1095 CHECK(IsContextExtension()); | 1089 CHECK(IsContextExtension()); |
1096 VerifyObjectField(kScopeInfoOffset); | 1090 VerifyObjectField(kScopeInfoOffset); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 | 1507 |
1514 // Both are done at the same time. | 1508 // Both are done at the same time. |
1515 CHECK_EQ(new_it.done(), old_it.done()); | 1509 CHECK_EQ(new_it.done(), old_it.done()); |
1516 } | 1510 } |
1517 | 1511 |
1518 | 1512 |
1519 #endif // DEBUG | 1513 #endif // DEBUG |
1520 | 1514 |
1521 } // namespace internal | 1515 } // namespace internal |
1522 } // namespace v8 | 1516 } // namespace v8 |
OLD | NEW |