OLD | NEW |
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 #include <memory> | 8 #include <memory> |
9 | 9 |
10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } | 189 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } |
190 | 190 |
191 void set_control_ptr(Node** control) { this->control_ = control; } | 191 void set_control_ptr(Node** control) { this->control_ = control; } |
192 | 192 |
193 void set_effect_ptr(Node** effect) { this->effect_ = effect; } | 193 void set_effect_ptr(Node** effect) { this->effect_ = effect; } |
194 | 194 |
195 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } | 195 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } |
196 | 196 |
197 void Int64LoweringForTesting(); | 197 void Int64LoweringForTesting(); |
198 | 198 |
| 199 void SimdScalarLoweringForTesting(); |
| 200 |
199 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); | 201 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); |
200 | 202 |
201 Node* CreateS128Value(int32_t value); | 203 Node* CreateS128Value(int32_t value); |
202 | 204 |
203 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); | 205 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); |
204 Node* SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane, Node* input); | 206 Node* SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane, Node* input); |
205 | 207 |
206 private: | 208 private: |
207 static const int kDefaultBufferSize = 16; | 209 static const int kDefaultBufferSize = 16; |
208 friend class WasmTrapHelper; | 210 friend class WasmTrapHelper; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 } | 346 } |
345 | 347 |
346 int AddParameterNodes(Node** args, int pos, int param_count, | 348 int AddParameterNodes(Node** args, int pos, int param_count, |
347 wasm::FunctionSig* sig); | 349 wasm::FunctionSig* sig); |
348 }; | 350 }; |
349 } // namespace compiler | 351 } // namespace compiler |
350 } // namespace internal | 352 } // namespace internal |
351 } // namespace v8 | 353 } // namespace v8 |
352 | 354 |
353 #endif // V8_COMPILER_WASM_COMPILER_H_ | 355 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |