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 3 // found in the LICENSE file. 4 5 #ifndef V8_WASM_WASM_JS_H_ 6 #define V8_WASM_WASM_JS_H_ 7 8 #include "src/common/globals.h" 9 10 namespace v8 { 11 namespace internal { 12 class JSProxy; 13 class WasmFrame; 14 15 namespace wasm { 16 class StreamingDecoder; 17 } // namespace wasm 18 19 // Exposes a WebAssembly API to JavaScript through the V8 API. 20 class WasmJs { 21 public: 22 V8_EXPORT_PRIVATE static void Install(Isolate* isolate, 23 bool exposed_on_global_object); 24 25 V8_EXPORT_PRIVATE static Handle<JSProxy> GetJSDebugProxy(WasmFrame* frame); 26 }; 27 28 } // namespace internal 29 } // namespace v8 30 31 #endif // V8_WASM_WASM_JS_H_ 32