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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 void PrototypeInfo::PrototypeInfoVerify() { | 944 void PrototypeInfo::PrototypeInfoVerify() { |
945 CHECK(IsPrototypeInfo()); | 945 CHECK(IsPrototypeInfo()); |
946 if (prototype_users()->IsWeakFixedArray()) { | 946 if (prototype_users()->IsWeakFixedArray()) { |
947 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 947 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
948 } else { | 948 } else { |
949 CHECK(prototype_users()->IsSmi()); | 949 CHECK(prototype_users()->IsSmi()); |
950 } | 950 } |
951 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); | 951 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); |
952 } | 952 } |
953 | 953 |
| 954 void Tuple3::Tuple3Verify() { |
| 955 CHECK(IsTuple3()); |
| 956 VerifyObjectField(kValue1Offset); |
| 957 VerifyObjectField(kValue2Offset); |
| 958 VerifyObjectField(kValue3Offset); |
| 959 } |
| 960 |
954 void ContextExtension::ContextExtensionVerify() { | 961 void ContextExtension::ContextExtensionVerify() { |
955 CHECK(IsContextExtension()); | 962 CHECK(IsContextExtension()); |
956 VerifyObjectField(kScopeInfoOffset); | 963 VerifyObjectField(kScopeInfoOffset); |
957 VerifyObjectField(kExtensionOffset); | 964 VerifyObjectField(kExtensionOffset); |
958 } | 965 } |
959 | 966 |
960 | 967 |
961 void AccessorInfo::AccessorInfoVerify() { | 968 void AccessorInfo::AccessorInfoVerify() { |
962 CHECK(IsAccessorInfo()); | 969 CHECK(IsAccessorInfo()); |
963 VerifyPointer(name()); | 970 VerifyPointer(name()); |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 | 1379 |
1373 // Both are done at the same time. | 1380 // Both are done at the same time. |
1374 CHECK_EQ(new_it.done(), old_it.done()); | 1381 CHECK_EQ(new_it.done(), old_it.done()); |
1375 } | 1382 } |
1376 | 1383 |
1377 | 1384 |
1378 #endif // DEBUG | 1385 #endif // DEBUG |
1379 | 1386 |
1380 } // namespace internal | 1387 } // namespace internal |
1381 } // namespace v8 | 1388 } // namespace v8 |
OLD | NEW |