blob: cb568db77c6b0d42f52f8170a4f7f30f22461138 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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_ASM_WASM_BUILDER_H_
6#define V8_WASM_ASM_WASM_BUILDER_H_
7
8#include "src/allocation.h"
9#include "src/wasm/encoder.h"
10#include "src/zone.h"
11
12namespace v8 {
13namespace internal {
14
15class FunctionLiteral;
16
17namespace wasm {
18
19class AsmWasmBuilder {
20 public:
21 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root);
22 WasmModuleIndex* Run();
23
24 private:
25 Isolate* isolate_;
26 Zone* zone_;
27 FunctionLiteral* literal_;
28};
29} // namespace wasm
30} // namespace internal
31} // namespace v8
32
33#endif // V8_WASM_ASM_WASM_BUILDER_H_