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

Unified Diff: src/asmjs/asm-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
« no previous file with comments | « src/asmjs/OWNERS ('k') | src/asmjs/asm-js.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/asmjs/asm-js.h
diff --git a/src/asmjs/asm-js.h b/src/asmjs/asm-js.h
new file mode 100644
index 0000000000000000000000000000000000000000..0af485ec7dba17aeff96953a230cc8e19cdf711d
--- /dev/null
+++ b/src/asmjs/asm-js.h
@@ -0,0 +1,31 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_ASMJS_ASM_JS_H_
+#define V8_ASMJS_ASM_JS_H_
+
+#ifndef V8_SHARED
+#include "src/allocation.h"
+#include "src/base/hashmap.h"
+#else
+#include "include/v8.h"
+#include "src/base/compiler-specific.h"
+#endif // !V8_SHARED
+#include "src/parsing/parser.h"
+
+namespace v8 {
+namespace internal {
+// Interface to compile and instantiate for asmjs.
+class AsmJs {
+ public:
+ static MaybeHandle<FixedArray> ConvertAsmToWasm(i::ParseInfo* info);
+ static MaybeHandle<Object> InstantiateAsmWasm(i::Isolate* isolate,
+ Handle<FixedArray> wasm_data,
+ Handle<JSArrayBuffer> memory,
+ Handle<JSObject> foreign);
+};
+
+} // namespace internal
+} // namespace v8
+#endif
« no previous file with comments | « src/asmjs/OWNERS ('k') | src/asmjs/asm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698