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

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

Issue 2620263003: Implement Instance instances correctly; fix a few error cases (Closed)
Patch Set: Export flag Created 3 years, 11 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/hashmap.h" 9 #include "src/base/hashmap.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 // Exposes a WASM API to JavaScript through the V8 API. 13 // Exposes a WASM API to JavaScript through the V8 API.
14 class WasmJs { 14 class WasmJs {
15 public: 15 public:
16 static void Install(Isolate* isolate, Handle<JSGlobalObject> global_object); 16 V8_EXPORT_PRIVATE static void Install(Isolate* isolate);
17
18 V8_EXPORT_PRIVATE static void InstallWasmModuleSymbolIfNeeded(
19 Isolate* isolate, Handle<JSGlobalObject> global, Handle<Context> context);
20
21 V8_EXPORT_PRIVATE static void InstallWasmMapsIfNeeded(
22 Isolate* isolate, Handle<Context> context);
23 static void InstallWasmConstructors(Isolate* isolate,
24 Handle<JSGlobalObject> global,
25 Handle<Context> context);
26 17
27 // WebAssembly.Table. 18 // WebAssembly.Table.
28 static bool IsWasmTableObject(Isolate* isolate, Handle<Object> value); 19 static bool IsWasmTableObject(Isolate* isolate, Handle<Object> value);
29 20
30 // WebAssembly.Memory 21 // WebAssembly.Memory
31 static bool IsWasmMemoryObject(Isolate* isolate, Handle<Object> value); 22 static bool IsWasmMemoryObject(Isolate* isolate, Handle<Object> value);
32 }; 23 };
33 24
34 } // namespace internal 25 } // namespace internal
35 } // namespace v8 26 } // namespace v8
36 #endif 27 #endif
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698