V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
liftoff-compiler.h
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 WasmCompilationUnit;
20 struct WasmFeatures;
21 
23  public:
24  explicit LiftoffCompilationUnit(WasmCompilationUnit* wasm_unit)
25  : wasm_unit_(wasm_unit) {}
26 
27  bool ExecuteCompilation(CompilationEnv*, const FunctionBody&, Counters*,
28  WasmFeatures* detected);
29 
30  private:
31  WasmCompilationUnit* const wasm_unit_;
32 
33  DISALLOW_COPY_AND_ASSIGN(LiftoffCompilationUnit);
34 };
35 
36 } // namespace wasm
37 } // namespace internal
38 } // namespace v8
39 
40 #endif // V8_WASM_BASELINE_LIFTOFF_COMPILER_H_
Definition: libplatform.h:13