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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 CHECK(IsBox()); | 899 CHECK(IsBox()); |
900 value()->ObjectVerify(); | 900 value()->ObjectVerify(); |
901 } | 901 } |
902 | 902 |
903 void Module::ModuleVerify() { | 903 void Module::ModuleVerify() { |
904 CHECK(IsModule()); | 904 CHECK(IsModule()); |
905 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 905 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
906 code()->ObjectVerify(); | 906 code()->ObjectVerify(); |
907 exports()->ObjectVerify(); | 907 exports()->ObjectVerify(); |
908 requested_modules()->ObjectVerify(); | 908 requested_modules()->ObjectVerify(); |
| 909 VerifySmiField(kFlagsOffset); |
909 // TODO(neis): Check more. | 910 // TODO(neis): Check more. |
910 } | 911 } |
911 | 912 |
912 void PrototypeInfo::PrototypeInfoVerify() { | 913 void PrototypeInfo::PrototypeInfoVerify() { |
913 CHECK(IsPrototypeInfo()); | 914 CHECK(IsPrototypeInfo()); |
914 if (prototype_users()->IsWeakFixedArray()) { | 915 if (prototype_users()->IsWeakFixedArray()) { |
915 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 916 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
916 } else { | 917 } else { |
917 CHECK(prototype_users()->IsSmi()); | 918 CHECK(prototype_users()->IsSmi()); |
918 } | 919 } |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 | 1341 |
1341 // Both are done at the same time. | 1342 // Both are done at the same time. |
1342 CHECK_EQ(new_it.done(), old_it.done()); | 1343 CHECK_EQ(new_it.done(), old_it.done()); |
1343 } | 1344 } |
1344 | 1345 |
1345 | 1346 |
1346 #endif // DEBUG | 1347 #endif // DEBUG |
1347 | 1348 |
1348 } // namespace internal | 1349 } // namespace internal |
1349 } // namespace v8 | 1350 } // namespace v8 |
OLD | NEW |