Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Unified Diff: src/objects-debug.cc

Issue 2347933002: [modules] Introduce v8::Module to the API and return it from CompileModule (Closed)
Patch Set: Less maybe Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index e014038933a659d9f0e420521aa11e02a45dc408..58525b854a6e4461d40a5e68bd515b31d4df6ca0 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -901,6 +901,8 @@ void Box::BoxVerify() {
void Module::ModuleVerify() {
CHECK(IsModule());
+ CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
+ code()->ObjectVerify();
exports()->ObjectVerify();
// TODO(neis): Check more.
}
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698