| 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 } | 928 } |
| 929 | 929 |
| 930 void Module::ModuleVerify() { | 930 void Module::ModuleVerify() { |
| 931 Isolate* isolate = GetIsolate(); | 931 Isolate* isolate = GetIsolate(); |
| 932 CHECK(IsModule()); | 932 CHECK(IsModule()); |
| 933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); | 933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
| 934 code()->ObjectVerify(); | 934 code()->ObjectVerify(); |
| 935 exports()->ObjectVerify(); | 935 exports()->ObjectVerify(); |
| 936 requested_modules()->ObjectVerify(); | 936 requested_modules()->ObjectVerify(); |
| 937 VerifySmiField(kFlagsOffset); | 937 VerifySmiField(kFlagsOffset); |
| 938 embedder_data()->ObjectVerify(); | |
| 939 VerifySmiField(kHashOffset); | 938 VerifySmiField(kHashOffset); |
| 940 CHECK(module_namespace()->IsUndefined(isolate) || | 939 CHECK(module_namespace()->IsUndefined(isolate) || |
| 941 module_namespace()->IsJSModuleNamespace()); | 940 module_namespace()->IsJSModuleNamespace()); |
| 942 // TODO(neis): Check more. | 941 // TODO(neis): Check more. |
| 943 } | 942 } |
| 944 | 943 |
| 945 void PrototypeInfo::PrototypeInfoVerify() { | 944 void PrototypeInfo::PrototypeInfoVerify() { |
| 946 CHECK(IsPrototypeInfo()); | 945 CHECK(IsPrototypeInfo()); |
| 947 if (prototype_users()->IsWeakFixedArray()) { | 946 if (prototype_users()->IsWeakFixedArray()) { |
| 948 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); | 947 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 | 1372 |
| 1374 // Both are done at the same time. | 1373 // Both are done at the same time. |
| 1375 CHECK_EQ(new_it.done(), old_it.done()); | 1374 CHECK_EQ(new_it.done(), old_it.done()); |
| 1376 } | 1375 } |
| 1377 | 1376 |
| 1378 | 1377 |
| 1379 #endif // DEBUG | 1378 #endif // DEBUG |
| 1380 | 1379 |
| 1381 } // namespace internal | 1380 } // namespace internal |
| 1382 } // namespace v8 | 1381 } // namespace v8 |
| OLD | NEW |