blob: ded9a1a90bad13ffadb6ec8ba085d0a8ecad737c [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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_JS_H_
6#define V8_WASM_JS_H_
7
8#ifndef V8_SHARED
9#include "src/allocation.h"
Ben Murdoch61f157c2016-09-16 13:49:30 +010010#include "src/base/hashmap.h"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000011#else
12#include "include/v8.h"
13#include "src/base/compiler-specific.h"
14#endif // !V8_SHARED
15
16namespace v8 {
17namespace internal {
18// Exposes a WASM API to JavaScript through the V8 API.
19class WasmJs {
20 public:
21 static void Install(Isolate* isolate, Handle<JSGlobalObject> global_object);
22 static void InstallWasmFunctionMap(Isolate* isolate, Handle<Context> context);
23};
24
25} // namespace internal
26} // namespace v8
27#endif