| Index: src/asmjs/asm-wasm-builder.h
|
| diff --git a/src/asmjs/asm-wasm-builder.h b/src/asmjs/asm-wasm-builder.h
|
| index f234abde8ac2e6ab946e0af125fdb3732b0d1265..ce9bae178b6d2dc7b64bf66821cd1225863c2e13 100644
|
| --- a/src/asmjs/asm-wasm-builder.h
|
| +++ b/src/asmjs/asm-wasm-builder.h
|
| @@ -15,6 +15,7 @@ namespace v8 {
|
| namespace internal {
|
|
|
| class FunctionLiteral;
|
| +class Script;
|
|
|
| namespace wasm {
|
|
|
| @@ -23,20 +24,26 @@ class AsmWasmBuilder {
|
| struct Result {
|
| ZoneBuffer* module_bytes;
|
| ZoneBuffer* asm_offset_table;
|
| + bool success;
|
| };
|
|
|
| - explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root,
|
| - AsmTyper* typer);
|
| + explicit AsmWasmBuilder(Isolate* isolate, Zone* zone,
|
| + AstValueFactory* ast_value_factory, Script* script,
|
| + FunctionLiteral* root);
|
| Result Run(Handle<FixedArray>* foreign_args);
|
|
|
| static const char* foreign_init_name;
|
| static const char* single_function_name;
|
|
|
| + const AsmTyper* typer() { return &typer_; }
|
| +
|
| private:
|
| Isolate* isolate_;
|
| Zone* zone_;
|
| + AstValueFactory* ast_value_factory_;
|
| + Script* script_;
|
| FunctionLiteral* literal_;
|
| - AsmTyper* typer_;
|
| + AsmTyper typer_;
|
| };
|
| } // namespace wasm
|
| } // namespace internal
|
|
|