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

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: Created 4 years, 2 months 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
Index: src/asmjs/asm-wasm-builder.h
diff --git a/src/asmjs/asm-wasm-builder.h b/src/asmjs/asm-wasm-builder.h
index 9f85dfaf07b97b40436a48c858e525a984a9b3fb..891f2f3af593a8c6cf8a5c5b62743d5e979fc3fc 100644
--- a/src/asmjs/asm-wasm-builder.h
+++ b/src/asmjs/asm-wasm-builder.h
@@ -15,14 +15,16 @@ namespace v8 {
namespace internal {
class FunctionLiteral;
+class Script;
namespace wasm {
class AsmWasmBuilder {
public:
- explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root,
- AsmTyper* typer);
+ explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, Script* script,
+ FunctionLiteral* root);
ZoneBuffer* Run(Handle<FixedArray>* foreign_args);
+ AsmTyper* typer() { return &typer_; }
static const char* foreign_init_name;
static const char* single_function_name;
@@ -30,8 +32,9 @@ class AsmWasmBuilder {
private:
Isolate* isolate_;
Zone* zone_;
+ Script* script_;
FunctionLiteral* literal_;
- AsmTyper* typer_;
+ AsmTyper typer_;
};
} // namespace wasm
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698