Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1612)

Unified Diff: src/asmjs/asm-wasm-builder.h

Issue 2398023002: [wasm] asm.js - Parse and convert asm.js to wasm a function at a time. (Closed)
Patch Set: fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | src/asmjs/asm-wasm-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | src/asmjs/asm-wasm-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698