summaryrefslogtreecommitdiff
path: root/deps/v8/src/wasm/baseline/liftoff-compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/baseline/liftoff-compiler.h')
-rw-r--r--deps/v8/src/wasm/baseline/liftoff-compiler.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/deps/v8/src/wasm/baseline/liftoff-compiler.h b/deps/v8/src/wasm/baseline/liftoff-compiler.h
index 322b2f7d54..ce828c459b 100644
--- a/deps/v8/src/wasm/baseline/liftoff-compiler.h
+++ b/deps/v8/src/wasm/baseline/liftoff-compiler.h
@@ -5,36 +5,29 @@
#ifndef V8_WASM_BASELINE_LIFTOFF_COMPILER_H_
#define V8_WASM_BASELINE_LIFTOFF_COMPILER_H_
-#include "src/source-position-table.h"
-#include "src/trap-handler/trap-handler.h"
-#include "src/wasm/baseline/liftoff-assembler.h"
-#include "src/wasm/function-body-decoder.h"
-#include "src/wasm/function-compiler.h"
+#include "src/base/macros.h"
namespace v8 {
namespace internal {
namespace wasm {
+class ErrorThrower;
+class WasmCode;
+class WasmCompilationUnit;
+
class LiftoffCompilationUnit final {
public:
explicit LiftoffCompilationUnit(WasmCompilationUnit* wasm_unit)
- : wasm_unit_(wasm_unit), asm_(wasm_unit->isolate_) {}
+ : wasm_unit_(wasm_unit) {}
bool ExecuteCompilation();
wasm::WasmCode* FinishCompilation(wasm::ErrorThrower*);
- void AbortCompilation();
private:
WasmCompilationUnit* const wasm_unit_;
- wasm::LiftoffAssembler asm_;
- int safepoint_table_offset_;
- SourcePositionTableBuilder source_position_table_builder_;
- std::unique_ptr<std::vector<trap_handler::ProtectedInstructionData>>
- protected_instructions_;
-
- // The {codegen_zone_} needs to survive until FinishCompilation. It's only
- // rarely used (e.g. for runtime calls), so it's only allocated when needed.
- std::unique_ptr<Zone> codegen_zone_;
+
+ // Result of compilation:
+ WasmCode* code_;
DISALLOW_COPY_AND_ASSIGN(LiftoffCompilationUnit);
};