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

Unified Diff: src/bootstrapper.cc

Issue 1507623002: Add an --expose-wasm flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 26857502da6705d59e88a1d81fb8b7e74e3f8686..b65af08228442a3ebf672180687a3a2b588e02d1 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2657,7 +2657,9 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) {
}
#if defined(V8_WASM)
- WasmJs::Install(isolate, global);
+ if (FLAG_expose_wasm) {
+ WasmJs::Install(isolate, global);
+ }
#endif
return true;
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698