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

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

Issue 2923103003: [WASM] Simplify SIMD shuffle opcodes. (Closed)
Patch Set: Mircea's review comments. Created 3 years, 6 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/opcodes.h ('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 #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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 Node* S1x16Zero(); 247 Node* S1x16Zero();
248 248
249 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); 249 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs);
250 250
251 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane, 251 Node* SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane,
252 const NodeVector& inputs); 252 const NodeVector& inputs);
253 253
254 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift, 254 Node* SimdShiftOp(wasm::WasmOpcode opcode, uint8_t shift,
255 const NodeVector& inputs); 255 const NodeVector& inputs);
256 256
257 Node* SimdShuffleOp(uint8_t shuffle[16], unsigned lanes, 257 Node* Simd8x16ShuffleOp(uint8_t shuffle[16], const NodeVector& inputs);
258 const NodeVector& inputs);
259 258
260 bool has_simd() const { return has_simd_; } 259 bool has_simd() const { return has_simd_; }
261 260
262 wasm::ModuleEnv* module_env() const { return module_; } 261 wasm::ModuleEnv* module_env() const { return module_; }
263 262
264 private: 263 private:
265 static const int kDefaultBufferSize = 16; 264 static const int kDefaultBufferSize = 16;
266 friend class WasmTrapHelper; 265 friend class WasmTrapHelper;
267 266
268 Zone* zone_; 267 Zone* zone_;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 403 }
405 404
406 int AddParameterNodes(Node** args, int pos, int param_count, 405 int AddParameterNodes(Node** args, int pos, int param_count,
407 wasm::FunctionSig* sig); 406 wasm::FunctionSig* sig);
408 }; 407 };
409 } // namespace compiler 408 } // namespace compiler
410 } // namespace internal 409 } // namespace internal
411 } // namespace v8 410 } // namespace v8
412 411
413 #endif // V8_COMPILER_WASM_COMPILER_H_ 412 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698