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

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

Issue 1702293002: Add asm.js stdlib portion implementable as wasm opcodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/wasm/asm-wasm-builder.cc » ('j') | src/wasm/asm-wasm-builder.cc » ('J')
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_WASM_ASM_WASM_BUILDER_H_ 5 #ifndef V8_WASM_ASM_WASM_BUILDER_H_
6 #define V8_WASM_ASM_WASM_BUILDER_H_ 6 #define V8_WASM_ASM_WASM_BUILDER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/typing-asm.h"
10 #include "src/wasm/encoder.h" 11 #include "src/wasm/encoder.h"
11 #include "src/zone.h" 12 #include "src/zone.h"
12 13
13 namespace v8 { 14 namespace v8 {
14 namespace internal { 15 namespace internal {
15 16
16 class FunctionLiteral; 17 class FunctionLiteral;
17 18
18 namespace wasm { 19 namespace wasm {
19 20
20 class AsmWasmBuilder { 21 class AsmWasmBuilder {
21 public: 22 public:
22 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root, 23 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root,
23 Handle<Object> foreign); 24 Handle<Object> foreign, AsmTyper* typer);
24 WasmModuleIndex* Run(); 25 WasmModuleIndex* Run();
25 26
26 private: 27 private:
27 Isolate* isolate_; 28 Isolate* isolate_;
28 Zone* zone_; 29 Zone* zone_;
29 FunctionLiteral* literal_; 30 FunctionLiteral* literal_;
30 Handle<Object> foreign_; 31 Handle<Object> foreign_;
32 AsmTyper* typer_;
31 }; 33 };
32 } // namespace wasm 34 } // namespace wasm
33 } // namespace internal 35 } // namespace internal
34 } // namespace v8 36 } // namespace v8
35 37
36 #endif // V8_WASM_ASM_WASM_BUILDER_H_ 38 #endif // V8_WASM_ASM_WASM_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/asm-wasm-builder.cc » ('j') | src/wasm/asm-wasm-builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698