summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/wasm-gc-lowering.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/wasm-gc-lowering.h')
-rw-r--r--deps/v8/src/compiler/wasm-gc-lowering.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/deps/v8/src/compiler/wasm-gc-lowering.h b/deps/v8/src/compiler/wasm-gc-lowering.h
index 9269555102..56d89c927d 100644
--- a/deps/v8/src/compiler/wasm-gc-lowering.h
+++ b/deps/v8/src/compiler/wasm-gc-lowering.h
@@ -10,6 +10,7 @@
#define V8_COMPILER_WASM_GC_LOWERING_H_
#include "src/compiler/graph-reducer.h"
+#include "src/compiler/wasm-compiler-definitions.h"
#include "src/compiler/wasm-graph-assembler.h"
namespace v8 {
@@ -17,12 +18,14 @@ namespace internal {
namespace compiler {
class MachineGraph;
+class SourcePositionTable;
class WasmGraphAssembler;
class WasmGCLowering final : public AdvancedReducer {
public:
WasmGCLowering(Editor* editor, MachineGraph* mcgraph,
- const wasm::WasmModule* module);
+ const wasm::WasmModule* module, bool disable_trap_handler,
+ SourcePositionTable* source_position_table);
const char* reducer_name() const override { return "WasmGCLowering"; }
@@ -39,13 +42,25 @@ class WasmGCLowering final : public AdvancedReducer {
Reduction ReduceTypeGuard(Node* node);
Reduction ReduceWasmExternInternalize(Node* node);
Reduction ReduceWasmExternExternalize(Node* node);
- Node* RootNode(RootIndex index);
- Node* Null();
- Node* IsNull(Node* object);
+ Reduction ReduceWasmStructGet(Node* node);
+ Reduction ReduceWasmStructSet(Node* node);
+ Reduction ReduceWasmArrayGet(Node* node);
+ Reduction ReduceWasmArraySet(Node* node);
+ Reduction ReduceWasmArrayLength(Node* node);
+ Reduction ReduceWasmArrayInitializeLength(Node* node);
+ Reduction ReduceStringAsWtf16(Node* node);
+ Reduction ReduceStringPrepareForGetCodeunit(Node* node);
+ Node* Null(wasm::ValueType type);
+ Node* IsNull(Node* object, wasm::ValueType type);
+ Node* BuildLoadExternalPointerFromObject(Node* object, int offset,
+ ExternalPointerTag tag);
+ void UpdateSourcePosition(Node* new_node, Node* old_node);
+ NullCheckStrategy null_check_strategy_;
WasmGraphAssembler gasm_;
const wasm::WasmModule* module_;
Node* dead_;
- Node* instance_node_;
+ const MachineGraph* mcgraph_;
+ SourcePositionTable* source_position_table_;
};
} // namespace compiler