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

Side by Side Diff: src/asmjs/asm-wasm-builder.h

Issue 2552873003: [wasm][asm.js] Pass Script with Handle. (Closed)
Patch Set: re-enable tests Created 4 years 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ASMJS_ASM_WASM_BUILDER_H_ 5 #ifndef V8_ASMJS_ASM_WASM_BUILDER_H_
6 #define V8_ASMJS_ASM_WASM_BUILDER_H_ 6 #define V8_ASMJS_ASM_WASM_BUILDER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/asmjs/asm-typer.h" 9 #include "src/asmjs/asm-typer.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class AsmWasmBuilder { 22 class AsmWasmBuilder {
23 public: 23 public:
24 struct Result { 24 struct Result {
25 ZoneBuffer* module_bytes; 25 ZoneBuffer* module_bytes;
26 ZoneBuffer* asm_offset_table; 26 ZoneBuffer* asm_offset_table;
27 bool success; 27 bool success;
28 }; 28 };
29 29
30 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, 30 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone,
31 AstValueFactory* ast_value_factory, Script* script, 31 AstValueFactory* ast_value_factory,
32 FunctionLiteral* root); 32 Handle<Script> script, FunctionLiteral* root);
33 Result Run(Handle<FixedArray>* foreign_args); 33 Result Run(Handle<FixedArray>* foreign_args);
34 34
35 static const char* foreign_init_name; 35 static const char* foreign_init_name;
36 static const char* single_function_name; 36 static const char* single_function_name;
37 37
38 const AsmTyper* typer() { return &typer_; } 38 const AsmTyper* typer() { return &typer_; }
39 39
40 private: 40 private:
41 Isolate* isolate_; 41 Isolate* isolate_;
42 Zone* zone_; 42 Zone* zone_;
43 AstValueFactory* ast_value_factory_; 43 AstValueFactory* ast_value_factory_;
44 Script* script_; 44 Handle<Script> script_;
45 FunctionLiteral* literal_; 45 FunctionLiteral* literal_;
46 AsmTyper typer_; 46 AsmTyper typer_;
47 }; 47 };
48 } // namespace wasm 48 } // namespace wasm
49 } // namespace internal 49 } // namespace internal
50 } // namespace v8 50 } // namespace v8
51 51
52 #endif // V8_WASM_ASM_WASM_BUILDER_H_ 52 #endif // V8_WASM_ASM_WASM_BUILDER_H_
OLDNEW
« 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