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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 Node* S1x16Zero(); | 245 Node* S1x16Zero(); |
246 | 246 |
247 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); | 247 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); |
248 | 248 |
249 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane, | 249 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane, |
250 const NodeVector& inputs); | 250 const NodeVector& inputs); |
251 | 251 |
252 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift, | 252 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift, |
253 const NodeVector& inputs); | 253 const NodeVector& inputs); |
254 | 254 |
255 Node* SimdConcatOp(uint8_t bytes, const NodeVector& inputs); | 255 Node* SimdShuffleOp(uint8_t shuffle[16], unsigned lanes, |
| 256 const NodeVector& inputs); |
256 | 257 |
257 bool has_simd() const { return has_simd_; } | 258 bool has_simd() const { return has_simd_; } |
258 | 259 |
259 wasm::ModuleEnv* module_env() const { return module_; } | 260 wasm::ModuleEnv* module_env() const { return module_; } |
260 | 261 |
261 private: | 262 private: |
262 static const int kDefaultBufferSize = 16; | 263 static const int kDefaultBufferSize = 16; |
263 friend class WasmTrapHelper; | 264 friend class WasmTrapHelper; |
264 | 265 |
265 Zone* zone_; | 266 Zone* zone_; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 } | 401 } |
401 | 402 |
402 int AddParameterNodes(Node** args, int pos, int param_count, | 403 int AddParameterNodes(Node** args, int pos, int param_count, |
403 wasm::FunctionSig* sig); | 404 wasm::FunctionSig* sig); |
404 }; | 405 }; |
405 } // namespace compiler | 406 } // namespace compiler |
406 } // namespace internal | 407 } // namespace internal |
407 } // namespace v8 | 408 } // namespace v8 |
408 | 409 |
409 #endif // V8_COMPILER_WASM_COMPILER_H_ | 410 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |