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

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

Issue 1677373002: Adding support for asm.js foreign globals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix 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') | 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_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/wasm/encoder.h" 10 #include "src/wasm/encoder.h"
10 #include "src/zone.h" 11 #include "src/zone.h"
11 12
12 namespace v8 { 13 namespace v8 {
13 namespace internal { 14 namespace internal {
14 15
15 class FunctionLiteral; 16 class FunctionLiteral;
16 17
17 namespace wasm { 18 namespace wasm {
18 19
19 class AsmWasmBuilder { 20 class AsmWasmBuilder {
20 public: 21 public:
21 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root); 22 explicit AsmWasmBuilder(Isolate* isolate, Zone* zone, FunctionLiteral* root,
23 Handle<Object> foreign);
22 WasmModuleIndex* Run(); 24 WasmModuleIndex* Run();
23 25
24 private: 26 private:
25 Isolate* isolate_; 27 Isolate* isolate_;
26 Zone* zone_; 28 Zone* zone_;
27 FunctionLiteral* literal_; 29 FunctionLiteral* literal_;
30 Handle<Object> foreign_;
28 }; 31 };
29 } // namespace wasm 32 } // namespace wasm
30 } // namespace internal 33 } // namespace internal
31 } // namespace v8 34 } // namespace v8
32 35
33 #endif // V8_WASM_ASM_WASM_BUILDER_H_ 36 #endif // V8_WASM_ASM_WASM_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/asm-wasm-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698