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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } | 193 void set_module(wasm::ModuleEnv* module) { this->module_ = module; } |
194 | 194 |
195 void set_control_ptr(Node** control) { this->control_ = control; } | 195 void set_control_ptr(Node** control) { this->control_ = control; } |
196 | 196 |
197 void set_effect_ptr(Node** effect) { this->effect_ = effect; } | 197 void set_effect_ptr(Node** effect) { this->effect_ = effect; } |
198 | 198 |
199 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } | 199 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } |
200 | 200 |
201 void Int64LoweringForTesting(); | 201 void Int64LoweringForTesting(); |
202 | 202 |
| 203 void SimdScalarLoweringForTesting(); |
| 204 |
203 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); | 205 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); |
204 | 206 |
205 Node* CreateS128Value(int32_t value); | 207 Node* CreateS128Value(int32_t value); |
206 | 208 |
207 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); | 209 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); |
208 Node* SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane, Node* input); | 210 Node* SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane, Node* input); |
209 | 211 |
210 private: | 212 private: |
211 static const int kDefaultBufferSize = 16; | 213 static const int kDefaultBufferSize = 16; |
212 friend class WasmTrapHelper; | 214 friend class WasmTrapHelper; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 } | 350 } |
349 | 351 |
350 int AddParameterNodes(Node** args, int pos, int param_count, | 352 int AddParameterNodes(Node** args, int pos, int param_count, |
351 wasm::FunctionSig* sig); | 353 wasm::FunctionSig* sig); |
352 }; | 354 }; |
353 } // namespace compiler | 355 } // namespace compiler |
354 } // namespace internal | 356 } // namespace internal |
355 } // namespace v8 | 357 } // namespace v8 |
356 | 358 |
357 #endif // V8_COMPILER_WASM_COMPILER_H_ | 359 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |