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 : #include "src/wasm/function-compiler.h"
10 :
11 : namespace v8 {
12 : namespace internal {
13 :
14 : class Counters;
15 :
16 : namespace wasm {
17 :
18 : struct CompilationEnv;
19 : struct FunctionBody;
20 : class NativeModule;
21 : struct WasmFeatures;
22 :
23 : class LiftoffCompilationUnit final {
24 : public:
25 : explicit LiftoffCompilationUnit(WasmCompilationUnit* wasm_unit)
26 594542 : : wasm_unit_(wasm_unit) {}
27 :
28 : WasmCompilationResult ExecuteCompilation(CompilationEnv*, const FunctionBody&,
29 : Counters*,
30 : WasmFeatures* detected_features);
31 :
32 : private:
33 : WasmCompilationUnit* const wasm_unit_;
34 :
35 : DISALLOW_COPY_AND_ASSIGN(LiftoffCompilationUnit);
36 : };
37 :
38 : } // namespace wasm
39 : } // namespace internal
40 : } // namespace v8
41 :
42 : #endif // V8_WASM_BASELINE_LIFTOFF_COMPILER_H_
|