OLD | NEW |
---|---|
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ASMJS_ASM_JS_H_ | 5 #ifndef V8_ASMJS_ASM_JS_H_ |
6 #define V8_ASMJS_ASM_JS_H_ | 6 #define V8_ASMJS_ASM_JS_H_ |
7 | 7 |
8 #ifndef V8_SHARED | 8 #ifndef V8_SHARED |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/base/hashmap.h" | 10 #include "src/base/hashmap.h" |
11 #else | 11 #else |
12 #include "include/v8.h" | 12 #include "include/v8.h" |
13 #include "src/base/compiler-specific.h" | 13 #include "src/base/compiler-specific.h" |
14 #endif // !V8_SHARED | 14 #endif // !V8_SHARED |
15 #include "src/parsing/parser.h" | 15 #include "src/parsing/parse-info.h" |
marja
2016/09/02 07:47:45
This #include is not needed - a forward declaratio
adamk
2016/09/02 17:06:34
Done.
| |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
18 namespace internal { | 18 namespace internal { |
19 | |
20 class JSArrayBuffer; | |
21 | |
19 // Interface to compile and instantiate for asmjs. | 22 // Interface to compile and instantiate for asmjs. |
20 class AsmJs { | 23 class AsmJs { |
21 public: | 24 public: |
22 static MaybeHandle<FixedArray> ConvertAsmToWasm(i::ParseInfo* info); | 25 static MaybeHandle<FixedArray> ConvertAsmToWasm(i::ParseInfo* info); |
23 static bool IsStdlibValid(i::Isolate* isolate, Handle<FixedArray> wasm_data, | 26 static bool IsStdlibValid(i::Isolate* isolate, Handle<FixedArray> wasm_data, |
24 Handle<JSReceiver> stdlib); | 27 Handle<JSReceiver> stdlib); |
25 static MaybeHandle<Object> InstantiateAsmWasm(i::Isolate* isolate, | 28 static MaybeHandle<Object> InstantiateAsmWasm(i::Isolate* isolate, |
26 Handle<FixedArray> wasm_data, | 29 Handle<FixedArray> wasm_data, |
27 Handle<JSArrayBuffer> memory, | 30 Handle<JSArrayBuffer> memory, |
28 Handle<JSReceiver> foreign); | 31 Handle<JSReceiver> foreign); |
29 }; | 32 }; |
30 | 33 |
31 } // namespace internal | 34 } // namespace internal |
32 } // namespace v8 | 35 } // namespace v8 |
33 #endif | 36 #endif |
OLD | NEW |