| 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 local_name()->IsUndefined(isolate)); | 1086 local_name()->IsUndefined(isolate)); |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 void Module::ModuleVerify() { | 1089 void Module::ModuleVerify() { |
| 1090 CHECK(IsModule()); | 1090 CHECK(IsModule()); |
| 1091 | 1091 |
| 1092 VerifyPointer(code()); | 1092 VerifyPointer(code()); |
| 1093 VerifyPointer(exports()); | 1093 VerifyPointer(exports()); |
| 1094 VerifyPointer(module_namespace()); | 1094 VerifyPointer(module_namespace()); |
| 1095 VerifyPointer(requested_modules()); | 1095 VerifyPointer(requested_modules()); |
| 1096 VerifyPointer(script()); |
| 1096 VerifySmiField(kHashOffset); | 1097 VerifySmiField(kHashOffset); |
| 1097 | 1098 |
| 1098 CHECK((!instantiated() && code()->IsSharedFunctionInfo()) || | 1099 CHECK((!instantiated() && code()->IsSharedFunctionInfo()) || |
| 1099 (instantiated() && !evaluated() && code()->IsJSFunction()) || | 1100 (instantiated() && !evaluated() && code()->IsJSFunction()) || |
| 1100 (instantiated() && evaluated() && code()->IsModuleInfo())); | 1101 (instantiated() && evaluated() && code()->IsModuleInfo())); |
| 1101 | 1102 |
| 1102 CHECK(module_namespace()->IsUndefined(GetIsolate()) || | 1103 CHECK(module_namespace()->IsUndefined(GetIsolate()) || |
| 1103 module_namespace()->IsJSModuleNamespace()); | 1104 module_namespace()->IsJSModuleNamespace()); |
| 1104 if (module_namespace()->IsJSModuleNamespace()) { | 1105 if (module_namespace()->IsJSModuleNamespace()) { |
| 1105 CHECK_EQ(JSModuleNamespace::cast(module_namespace())->module(), this); | 1106 CHECK_EQ(JSModuleNamespace::cast(module_namespace())->module(), this); |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 | 1562 |
| 1562 // Both are done at the same time. | 1563 // Both are done at the same time. |
| 1563 CHECK_EQ(new_it.done(), old_it.done()); | 1564 CHECK_EQ(new_it.done(), old_it.done()); |
| 1564 } | 1565 } |
| 1565 | 1566 |
| 1566 | 1567 |
| 1567 #endif // DEBUG | 1568 #endif // DEBUG |
| 1568 | 1569 |
| 1569 } // namespace internal | 1570 } // namespace internal |
| 1570 } // namespace v8 | 1571 } // namespace v8 |
| OLD | NEW |