Commit dd614f55 authored by neis's avatar neis Committed by Commit bot

[modules] Check more invariants for Module objects in heap verifier.

R=adamk@chromium.org
BUG=v8:1569

Review-Url: https://chromiumcodereview.appspot.com/2442723002
Cr-Commit-Position: refs/heads/master@{#40508}
parent e31e5e91
...@@ -1015,8 +1015,13 @@ void Module::ModuleVerify() { ...@@ -1015,8 +1015,13 @@ void Module::ModuleVerify() {
CHECK(module_namespace()->IsUndefined(GetIsolate()) || CHECK(module_namespace()->IsUndefined(GetIsolate()) ||
module_namespace()->IsJSModuleNamespace()); module_namespace()->IsJSModuleNamespace());
if (module_namespace()->IsJSModuleNamespace()) {
CHECK_EQ(JSModuleNamespace::cast(module_namespace())->module(), this);
}
CHECK_EQ(requested_modules()->length(), info()->module_requests()->length());
// TODO(neis): Check more. CHECK_NE(hash(), 0);
} }
void PrototypeInfo::PrototypeInfoVerify() { void PrototypeInfo::PrototypeInfoVerify() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment