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

Side by Side Diff: src/wasm/wasm-opcodes.cc

Issue 2847663005: [WASM SIMD] Replace primitive shuffles with general Shuffle. (Closed)
Patch Set: Remove stray wasm opcode. Created 3 years, 7 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
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 #include "src/wasm/wasm-opcodes.h" 5 #include "src/wasm/wasm-opcodes.h"
6 #include "src/messages.h" 6 #include "src/messages.h"
7 #include "src/runtime/runtime.h" 7 #include "src/runtime/runtime.h"
8 #include "src/signature.h" 8 #include "src/signature.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 CASE_I32x4_OP(AddHoriz, "add_horizontal") 207 CASE_I32x4_OP(AddHoriz, "add_horizontal")
208 CASE_I16x8_OP(AddHoriz, "add_horizontal") 208 CASE_I16x8_OP(AddHoriz, "add_horizontal")
209 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") 209 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate")
210 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") 210 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate")
211 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") 211 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate")
212 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") 212 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate")
213 CASE_S128_OP(And, "and") 213 CASE_S128_OP(And, "and")
214 CASE_S128_OP(Or, "or") 214 CASE_S128_OP(Or, "or")
215 CASE_S128_OP(Xor, "xor") 215 CASE_S128_OP(Xor, "xor")
216 CASE_S128_OP(Not, "not") 216 CASE_S128_OP(Not, "not")
217 CASE_S32x4_OP(ZipLeft, "zip left") 217 CASE_S32x4_OP(Shuffle, "shuffle")
218 CASE_S32x4_OP(ZipRight, "zip right")
219 CASE_S32x4_OP(UnzipLeft, "unzip left")
220 CASE_S32x4_OP(UnzipRight, "unzip right")
221 CASE_S32x4_OP(TransposeLeft, "transpose left")
222 CASE_S32x4_OP(TransposeRight, "transpose right")
223 CASE_S32x4_OP(Select, "select") 218 CASE_S32x4_OP(Select, "select")
224 CASE_S16x8_OP(ZipLeft, "zip left") 219 CASE_S16x8_OP(Shuffle, "shuffle")
225 CASE_S16x8_OP(ZipRight, "zip right")
226 CASE_S16x8_OP(UnzipLeft, "unzip left")
227 CASE_S16x8_OP(UnzipRight, "unzip right")
228 CASE_S16x8_OP(TransposeLeft, "transpose left")
229 CASE_S16x8_OP(TransposeRight, "transpose right")
230 CASE_S16x8_OP(Select, "select") 220 CASE_S16x8_OP(Select, "select")
231 CASE_S8x16_OP(ZipLeft, "zip left") 221 CASE_S8x16_OP(Shuffle, "shuffle")
232 CASE_S8x16_OP(ZipRight, "zip right")
233 CASE_S8x16_OP(UnzipLeft, "unzip left")
234 CASE_S8x16_OP(UnzipRight, "unzip right")
235 CASE_S8x16_OP(TransposeLeft, "transpose left")
236 CASE_S8x16_OP(TransposeRight, "transpose right")
237 CASE_S8x16_OP(Select, "select") 222 CASE_S8x16_OP(Select, "select")
238 CASE_S8x16_OP(Concat, "concat")
239 CASE_OP(S32x2Reverse, "32x2 reverse")
240 CASE_OP(S16x4Reverse, "16x4 reverse")
241 CASE_OP(S16x2Reverse, "16x2 reverse")
242 CASE_OP(S8x8Reverse, "8x8 reverse")
243 CASE_OP(S8x4Reverse, "8x4 reverse")
244 CASE_OP(S8x2Reverse, "8x2 reverse")
245 CASE_S1x4_OP(And, "and") 223 CASE_S1x4_OP(And, "and")
246 CASE_S1x4_OP(Or, "or") 224 CASE_S1x4_OP(Or, "or")
247 CASE_S1x4_OP(Xor, "xor") 225 CASE_S1x4_OP(Xor, "xor")
248 CASE_S1x4_OP(Not, "not") 226 CASE_S1x4_OP(Not, "not")
249 CASE_S1x4_OP(AnyTrue, "any_true") 227 CASE_S1x4_OP(AnyTrue, "any_true")
250 CASE_S1x4_OP(AllTrue, "all_true") 228 CASE_S1x4_OP(AllTrue, "all_true")
251 CASE_S1x8_OP(And, "and") 229 CASE_S1x8_OP(And, "and")
252 CASE_S1x8_OP(Or, "or") 230 CASE_S1x8_OP(Or, "or")
253 CASE_S1x8_OP(Xor, "xor") 231 CASE_S1x8_OP(Xor, "xor")
254 CASE_S1x8_OP(Not, "not") 232 CASE_S1x8_OP(Not, "not")
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 return MessageTemplate::kNone; 407 return MessageTemplate::kNone;
430 } 408 }
431 } 409 }
432 410
433 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { 411 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) {
434 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); 412 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason));
435 } 413 }
436 } // namespace wasm 414 } // namespace wasm
437 } // namespace internal 415 } // namespace internal
438 } // namespace v8 416 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698