1// 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/objects.h"
10#include "src/typing-asm.h"
11#include "src/wasm/encoder.h"
12#include "src/zone.h"
13
14namespace v8 {
15namespace internal {
16
17class FunctionLiteral;
18
19namespace wasm {
20
21class AsmWasmBuilder {
22 public:
23  explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root,
24                          AsmTyper* typer);
25  ZoneBuffer* Run(Handle<FixedArray>* foreign_args);
26
27 private:
28  Isolate* isolate_;
29  Zone* zone_;
30  FunctionLiteral* literal_;
31  AsmTyper* typer_;
32};
33}  // namespace wasm
34}  // namespace internal
35}  // namespace v8
36
37#endif  // V8_WASM_ASM_WASM_BUILDER_H_
38