1 // Copyright 2020 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_BUILTINS_BUILTINS_WASM_GEN_H_ 6 #define V8_BUILTINS_BUILTINS_WASM_GEN_H_ 7 8 #include "src/codegen/code-stub-assembler.h" 9 10 namespace v8 { 11 namespace internal { 12 13 class WasmBuiltinsAssembler : public CodeStubAssembler { 14 public: WasmBuiltinsAssembler(compiler::CodeAssemblerState * state)15 explicit WasmBuiltinsAssembler(compiler::CodeAssemblerState* state) 16 : CodeStubAssembler(state) {} 17 18 TNode<WasmInstanceObject> LoadInstanceFromFrame(); 19 20 TNode<NativeContext> LoadContextFromInstance( 21 TNode<WasmInstanceObject> instance); 22 23 TNode<FixedArray> LoadTablesFromInstance(TNode<WasmInstanceObject> instance); 24 25 TNode<FixedArray> LoadInternalFunctionsFromInstance( 26 TNode<WasmInstanceObject> instance); 27 28 TNode<FixedArray> LoadManagedObjectMapsFromInstance( 29 TNode<WasmInstanceObject> instance); 30 }; 31 32 } // namespace internal 33 } // namespace v8 34 35 #endif // V8_BUILTINS_BUILTINS_WASM_GEN_H_ 36