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_JS_H_ 6#define V8_WASM_JS_H_ 7 8#include "src/allocation.h" 9#include "src/base/hashmap.h" 10 11namespace v8 { 12namespace internal { 13// Exposes a WASM API to JavaScript through the V8 API. 14class WasmJs { 15 public: 16 V8_EXPORT_PRIVATE static void Install(Isolate* isolate); 17 18 // WebAssembly.Table. 19 static bool IsWasmTableObject(Isolate* isolate, Handle<Object> value); 20 21 // WebAssembly.Memory 22 static bool IsWasmMemoryObject(Isolate* isolate, Handle<Object> value); 23}; 24 25} // namespace internal 26} // namespace v8 27#endif 28