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

Side by Side Diff: src/wasm/wasm-js.h

Issue 2342623002: [wasm] Set up Table and Memory constructors
Patch Set: Eps Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_WASM_JS_H_ 5 #ifndef V8_WASM_JS_H_
6 #define V8_WASM_JS_H_ 6 #define V8_WASM_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 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 // Exposes a WASM API to JavaScript through the V8 API. 18 // Exposes a WASM API to JavaScript through the V8 API.
19 class WasmJs { 19 class WasmJs {
20 public: 20 public:
21 static void Install(Isolate* isolate, Handle<JSGlobalObject> global_object); 21 static void Install(Isolate* isolate, Handle<JSGlobalObject> global_object);
22 static void InstallWasmFunctionMap(Isolate* isolate, Handle<Context> context); 22 static void InstallWasmMaps(Isolate* isolate, Handle<Context> context);
23 static void InstallWasmModuleSymbol(Isolate* isolate, 23 static void InstallWasmConstructors(Isolate* isolate,
24 Handle<JSGlobalObject> global, 24 Handle<JSGlobalObject> global,
25 Handle<Context> context); 25 Handle<Context> context);
26 static void SetupIsolateForWasm(Isolate* isolate); 26 static void SetupIsolateForWasm(Isolate* isolate);
27 }; 27 };
28 28
29 } // namespace internal 29 } // namespace internal
30 } // namespace v8 30 } // namespace v8
31 #endif 31 #endif
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/wasm/wasm-js.cc » ('j') | src/wasm/wasm-result.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698