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

Unified Diff: src/wasm/wasm-js.h

Issue 2057403003: Hooking up asm-wasm conversion. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 6 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
Index: src/wasm/wasm-js.h
diff --git a/src/wasm/wasm-js.h b/src/wasm/wasm-js.h
index ded9a1a90bad13ffadb6ec8ba085d0a8ecad737c..a21398d269fca9043fa051a5fc864a4ed156488d 100644
--- a/src/wasm/wasm-js.h
+++ b/src/wasm/wasm-js.h
@@ -12,6 +12,7 @@
#include "include/v8.h"
#include "src/base/compiler-specific.h"
#endif // !V8_SHARED
+#include "src/parsing/parser.h"
namespace v8 {
namespace internal {
@@ -20,6 +21,13 @@ class WasmJs {
public:
static void Install(Isolate* isolate, Handle<JSGlobalObject> global_object);
static void InstallWasmFunctionMap(Isolate* isolate, Handle<Context> context);
+ static bool ConvertAsmToWasm(i::ParseInfo* info, bool fixed_signature,
+ Handle<FixedArray>* wasm_data);
+ static bool InstantiateAsmWasm(i::Isolate* isolate,
+ Handle<FixedArray> wasm_data,
+ Handle<JSArrayBuffer> memory,
+ Handle<JSObject> foreign,
+ Handle<Object>* result);
};
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698