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

Side by Side Diff: src/compiler/wasm-compiler.h

Issue 1655883002: [wasm] Initial commit for the Int64Reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Initialize replacement array 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 | « src/compiler/int64-lowering.cc ('k') | src/compiler/wasm-compiler.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_COMPILER_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-opcodes.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Node* Effect() { return *effect_; } 125 Node* Effect() { return *effect_; }
126 126
127 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } 127 void set_module(wasm::ModuleEnv* module) { this->module_ = module; }
128 128
129 void set_control_ptr(Node** control) { this->control_ = control; } 129 void set_control_ptr(Node** control) { this->control_ = control; }
130 130
131 void set_effect_ptr(Node** effect) { this->effect_ = effect; } 131 void set_effect_ptr(Node** effect) { this->effect_ = effect; }
132 132
133 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } 133 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; }
134 134
135 void Int64LoweringForTesting();
136
135 private: 137 private:
136 static const int kDefaultBufferSize = 16; 138 static const int kDefaultBufferSize = 16;
137 friend class WasmTrapHelper; 139 friend class WasmTrapHelper;
138 140
139 Zone* zone_; 141 Zone* zone_;
140 JSGraph* jsgraph_; 142 JSGraph* jsgraph_;
141 wasm::ModuleEnv* module_; 143 wasm::ModuleEnv* module_;
142 Node* mem_buffer_; 144 Node* mem_buffer_;
143 Node* mem_size_; 145 Node* mem_size_;
144 Node* function_table_; 146 Node* function_table_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 Node** buf = Buffer(count); 194 Node** buf = Buffer(count);
193 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); 195 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*));
194 return buf; 196 return buf;
195 } 197 }
196 }; 198 };
197 } // namespace compiler 199 } // namespace compiler
198 } // namespace internal 200 } // namespace internal
199 } // namespace v8 201 } // namespace v8
200 202
201 #endif // V8_COMPILER_WASM_COMPILER_H_ 203 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compiler/int64-lowering.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698