wasm-js.h 626 Bytes
Newer Older
1 2 3 4
// Copyright 2015 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.

5 6
#ifndef V8_WASM_WASM_JS_H_
#define V8_WASM_WASM_JS_H_
7

8
#include "src/globals.h"
9 10 11

namespace v8 {
namespace internal {
12

13 14 15 16
namespace wasm {
class StreamingDecoder;
}

17
// Exposes a WebAssembly API to JavaScript through the V8 API.
18 19
class WasmJs {
 public:
20 21
  V8_EXPORT_PRIVATE static void Install(Isolate* isolate,
                                        bool exposed_on_global_object);
22
};
23

24 25
}  // namespace internal
}  // namespace v8
26 27

#endif  // V8_WASM_WASM_JS_H_