| 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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 void PrototypeInfo::PrototypeInfoVerify() { | 904 void PrototypeInfo::PrototypeInfoVerify() { |
| 905 CHECK(IsPrototypeInfo()); | 905 CHECK(IsPrototypeInfo()); |
| 906 if (prototype_users()->IsWeakFixedArray()) { | 906 if (prototype_users()->IsWeakFixedArray()) { |
| 907 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 907 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
| 908 } else { | 908 } else { |
| 909 CHECK(prototype_users()->IsSmi()); | 909 CHECK(prototype_users()->IsSmi()); |
| 910 } | 910 } |
| 911 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); | 911 CHECK(validity_cell()->IsCell() || validity_cell()->IsSmi()); |
| 912 } | 912 } |
| 913 | 913 |
| 914 | 914 void ContextExtension::ContextExtensionVerify() { |
| 915 void SloppyBlockWithEvalContextExtension:: | 915 CHECK(IsContextExtension()); |
| 916 SloppyBlockWithEvalContextExtensionVerify() { | |
| 917 CHECK(IsSloppyBlockWithEvalContextExtension()); | |
| 918 VerifyObjectField(kScopeInfoOffset); | 916 VerifyObjectField(kScopeInfoOffset); |
| 919 VerifyObjectField(kExtensionOffset); | 917 VerifyObjectField(kExtensionOffset); |
| 920 } | 918 } |
| 921 | 919 |
| 922 | 920 |
| 923 void AccessorInfo::AccessorInfoVerify() { | 921 void AccessorInfo::AccessorInfoVerify() { |
| 924 CHECK(IsAccessorInfo()); | 922 CHECK(IsAccessorInfo()); |
| 925 VerifyPointer(name()); | 923 VerifyPointer(name()); |
| 926 VerifyPointer(expected_receiver_type()); | 924 VerifyPointer(expected_receiver_type()); |
| 927 VerifyPointer(getter()); | 925 VerifyPointer(getter()); |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 | 1332 |
| 1335 // Both are done at the same time. | 1333 // Both are done at the same time. |
| 1336 CHECK_EQ(new_it.done(), old_it.done()); | 1334 CHECK_EQ(new_it.done(), old_it.done()); |
| 1337 } | 1335 } |
| 1338 | 1336 |
| 1339 | 1337 |
| 1340 #endif // DEBUG | 1338 #endif // DEBUG |
| 1341 | 1339 |
| 1342 } // namespace internal | 1340 } // namespace internal |
| 1343 } // namespace v8 | 1341 } // namespace v8 |
| OLD | NEW |