Line data Source code
1 : // Copyright 2018 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_BASELINE_LIFTOFF_COMPILER_H_
6 : #define V8_WASM_BASELINE_LIFTOFF_COMPILER_H_
7 :
8 : #include "src/base/macros.h"
9 :
10 : namespace v8 {
11 : namespace internal {
12 :
13 : class Counters;
14 :
15 : namespace wasm {
16 :
17 : struct CompilationEnv;
18 : struct FunctionBody;
19 : class NativeModule;
20 : class WasmCompilationUnit;
21 : struct WasmFeatures;
22 :
23 : class LiftoffCompilationUnit final {
24 : public:
25 : explicit LiftoffCompilationUnit(WasmCompilationUnit* wasm_unit)
26 712207 : : wasm_unit_(wasm_unit) {}
27 :
28 : bool ExecuteCompilation(CompilationEnv*, NativeModule*, const FunctionBody&,
29 : Counters*, WasmFeatures* detected);
30 :
31 : private:
32 : WasmCompilationUnit* const wasm_unit_;
33 :
34 : DISALLOW_COPY_AND_ASSIGN(LiftoffCompilationUnit);
35 : };
36 :
37 : } // namespace wasm
38 : } // namespace internal
39 : } // namespace v8
40 :
41 : #endif // V8_WASM_BASELINE_LIFTOFF_COMPILER_H_
|