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

Unified Diff: src/bootstrapper.cc

Issue 1319003002: [wasm] Move the (conditional) installation of the WASM api into bootstrapper.cc. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | src/d8.cc » ('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 ecd3c43c9c5e7855254875c3ef793eb11e992eb1..9d2121e54379ecb51d812aff8acfbfb7bb43babc 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -18,6 +18,10 @@
#include "src/snapshot/snapshot.h"
#include "third_party/fdlibm/fdlibm.h"
+#if defined(V8_WASM)
+#include "src/wasm/wasm-js.h"
+#endif
+
namespace v8 {
namespace internal {
@@ -2666,6 +2670,11 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) {
Handle<Object> global_proxy(debug_context->global_proxy(), isolate);
JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM);
}
+
+#if defined(V8_WASM)
+ WasmJs::Install(isolate, global);
+#endif
+
return true;
}
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698