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

Unified Diff: src/d8.cc

Issue 1294543006: Allowing optional build of a WASM prototype behind a gyp define. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: drop deps 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 | « build/features.gypi ('k') | src/d8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index d1eb9592777b3cfe2270df001c36db49885447c5..9531e24a44e62fc472011f0f15e1f461fd0fbcfa 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -49,6 +49,10 @@
#include "src/v8.h"
#endif // !V8_SHARED
+#if defined(V8_WASM)
+#include "src/wasm/wasm-js.h"
+#endif
+
#if !defined(_WIN32) && !defined(_WIN64)
#include <unistd.h> // NOLINT
#else
@@ -1170,6 +1174,11 @@ Local<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) {
.ToLocalChecked(),
os_templ);
+#if defined(V8_WASM)
+ // Install WASM API.
+ WasmJs::Install(isolate, global_template);
+#endif
+
return global_template;
}
« no previous file with comments | « build/features.gypi ('k') | src/d8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698