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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 Node* CreateS128Value(int32_t value); | 228 Node* CreateS128Value(int32_t value); |
229 | 229 |
230 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); | 230 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); |
231 | 231 |
232 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane, | 232 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane, |
233 const NodeVector& inputs); | 233 const NodeVector& inputs); |
234 | 234 |
235 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift, | 235 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift, |
236 const NodeVector& inputs); | 236 const NodeVector& inputs); |
237 | 237 |
| 238 Node* SimdSwizzleOp(wasm::WasmOpcode opcode, uint32_t swizzle, |
| 239 const NodeVector& inputs); |
| 240 |
238 bool has_simd() const { return has_simd_; } | 241 bool has_simd() const { return has_simd_; } |
239 | 242 |
240 wasm::ModuleEnv* module_env() const { return module_; } | 243 wasm::ModuleEnv* module_env() const { return module_; } |
241 | 244 |
242 private: | 245 private: |
243 static const int kDefaultBufferSize = 16; | 246 static const int kDefaultBufferSize = 16; |
244 friend class WasmTrapHelper; | 247 friend class WasmTrapHelper; |
245 | 248 |
246 Zone* zone_; | 249 Zone* zone_; |
247 JSGraph* jsgraph_; | 250 JSGraph* jsgraph_; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 385 } |
383 | 386 |
384 int AddParameterNodes(Node** args, int pos, int param_count, | 387 int AddParameterNodes(Node** args, int pos, int param_count, |
385 wasm::FunctionSig* sig); | 388 wasm::FunctionSig* sig); |
386 }; | 389 }; |
387 } // namespace compiler | 390 } // namespace compiler |
388 } // namespace internal | 391 } // namespace internal |
389 } // namespace v8 | 392 } // namespace v8 |
390 | 393 |
391 #endif // V8_COMPILER_WASM_COMPILER_H_ | 394 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |