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 |