Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/builtins/builtins-wasm-gen.h')
-rw-r--r--deps/v8/src/builtins/builtins-wasm-gen.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/deps/v8/src/builtins/builtins-wasm-gen.h b/deps/v8/src/builtins/builtins-wasm-gen.h
new file mode 100644
index 00000000000..3740560666d
--- /dev/null
+++ b/deps/v8/src/builtins/builtins-wasm-gen.h
@@ -0,0 +1,35 @@
+// Copyright 2020 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.
+
+#ifndef V8_BUILTINS_BUILTINS_WASM_GEN_H_
+#define V8_BUILTINS_BUILTINS_WASM_GEN_H_
+
+#include "src/codegen/code-stub-assembler.h"
+
+namespace v8 {
+namespace internal {
+
+class WasmBuiltinsAssembler : public CodeStubAssembler {
+ public:
+ explicit WasmBuiltinsAssembler(compiler::CodeAssemblerState* state)
+ : CodeStubAssembler(state) {}
+
+ TNode<WasmInstanceObject> LoadInstanceFromFrame();
+
+ TNode<NativeContext> LoadContextFromInstance(
+ TNode<WasmInstanceObject> instance);
+
+ TNode<FixedArray> LoadTablesFromInstance(TNode<WasmInstanceObject> instance);
+
+ TNode<FixedArray> LoadExternalFunctionsFromInstance(
+ TNode<WasmInstanceObject> instance);
+
+ protected:
+ TNode<Smi> SmiFromUint32WithSaturation(TNode<Uint32T> value, uint32_t max);
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif // V8_BUILTINS_BUILTINS_WASM_GEN_H_