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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 after_debug_event()->ObjectVerify(); | 919 after_debug_event()->ObjectVerify(); |
920 } | 920 } |
921 | 921 |
922 void Module::ModuleVerify() { | 922 void Module::ModuleVerify() { |
923 CHECK(IsModule()); | 923 CHECK(IsModule()); |
924 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 924 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
925 code()->ObjectVerify(); | 925 code()->ObjectVerify(); |
926 exports()->ObjectVerify(); | 926 exports()->ObjectVerify(); |
927 requested_modules()->ObjectVerify(); | 927 requested_modules()->ObjectVerify(); |
928 VerifySmiField(kFlagsOffset); | 928 VerifySmiField(kFlagsOffset); |
929 embedder_data()->ObjectVerify(); | |
930 CHECK(shared()->name()->IsSymbol()); | 929 CHECK(shared()->name()->IsSymbol()); |
931 // TODO(neis): Check more. | 930 // TODO(neis): Check more. |
932 } | 931 } |
933 | 932 |
934 void PrototypeInfo::PrototypeInfoVerify() { | 933 void PrototypeInfo::PrototypeInfoVerify() { |
935 CHECK(IsPrototypeInfo()); | 934 CHECK(IsPrototypeInfo()); |
936 if (prototype_users()->IsWeakFixedArray()) { | 935 if (prototype_users()->IsWeakFixedArray()) { |
937 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 936 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
938 } else { | 937 } else { |
939 CHECK(prototype_users()->IsSmi()); | 938 CHECK(prototype_users()->IsSmi()); |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 | 1361 |
1363 // Both are done at the same time. | 1362 // Both are done at the same time. |
1364 CHECK_EQ(new_it.done(), old_it.done()); | 1363 CHECK_EQ(new_it.done(), old_it.done()); |
1365 } | 1364 } |
1366 | 1365 |
1367 | 1366 |
1368 #endif // DEBUG | 1367 #endif // DEBUG |
1369 | 1368 |
1370 } // namespace internal | 1369 } // namespace internal |
1371 } // namespace v8 | 1370 } // namespace v8 |
OLD | NEW |