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

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

Issue 2801183002: [WASM SIMD] Implement primitive shuffles. (Closed)
Patch Set: Add comments, remove S64x2Reverse, as it's redundant. Created 3 years, 8 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 CASE_SIGN_OP(SIMDI, Shr, "shr") 204 CASE_SIGN_OP(SIMDI, Shr, "shr")
205 CASE_SIMDI_OP(Shl, "shl") 205 CASE_SIMDI_OP(Shl, "shl")
206 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") 206 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate")
207 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") 207 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate")
208 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") 208 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate")
209 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") 209 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate")
210 CASE_S128_OP(And, "and") 210 CASE_S128_OP(And, "and")
211 CASE_S128_OP(Or, "or") 211 CASE_S128_OP(Or, "or")
212 CASE_S128_OP(Xor, "xor") 212 CASE_S128_OP(Xor, "xor")
213 CASE_S128_OP(Not, "not") 213 CASE_S128_OP(Not, "not")
214 CASE_S32x4_OP(ZipLeft, "zip left")
215 CASE_S32x4_OP(ZipRight, "zip right")
216 CASE_S32x4_OP(UnzipLeft, "unzip left")
217 CASE_S32x4_OP(UnzipRight, "unzip right")
218 CASE_S32x4_OP(TransposeLeft, "transpose left")
219 CASE_S32x4_OP(TransposeRight, "transpose right")
214 CASE_S32x4_OP(Select, "select") 220 CASE_S32x4_OP(Select, "select")
215 CASE_S32x4_OP(Swizzle, "swizzle") 221 CASE_S16x8_OP(ZipLeft, "zip left")
216 CASE_S32x4_OP(Shuffle, "shuffle") 222 CASE_S16x8_OP(ZipRight, "zip right")
223 CASE_S16x8_OP(UnzipLeft, "unzip left")
224 CASE_S16x8_OP(UnzipRight, "unzip right")
225 CASE_S16x8_OP(TransposeLeft, "transpose left")
226 CASE_S16x8_OP(TransposeRight, "transpose right")
217 CASE_S16x8_OP(Select, "select") 227 CASE_S16x8_OP(Select, "select")
218 CASE_S16x8_OP(Swizzle, "swizzle") 228 CASE_S8x16_OP(ZipLeft, "zip left")
219 CASE_S16x8_OP(Shuffle, "shuffle") 229 CASE_S8x16_OP(ZipRight, "zip right")
230 CASE_S8x16_OP(UnzipLeft, "unzip left")
231 CASE_S8x16_OP(UnzipRight, "unzip right")
232 CASE_S8x16_OP(TransposeLeft, "transpose left")
233 CASE_S8x16_OP(TransposeRight, "transpose right")
220 CASE_S8x16_OP(Select, "select") 234 CASE_S8x16_OP(Select, "select")
221 CASE_S8x16_OP(Swizzle, "swizzle") 235 CASE_S8x16_OP(Concat, "concat")
222 CASE_S8x16_OP(Shuffle, "shuffle") 236 CASE_OP(S32x2Reverse, "32x2 reverse")
237 CASE_OP(S16x4Reverse, "16x4 reverse")
238 CASE_OP(S16x2Reverse, "16x2 reverse")
239 CASE_OP(S8x8Reverse, "8x8 reverse")
240 CASE_OP(S8x4Reverse, "8x4 reverse")
241 CASE_OP(S8x2Reverse, "8x2 reverse")
223 CASE_S1x4_OP(And, "and") 242 CASE_S1x4_OP(And, "and")
224 CASE_S1x4_OP(Or, "or") 243 CASE_S1x4_OP(Or, "or")
225 CASE_S1x4_OP(Xor, "xor") 244 CASE_S1x4_OP(Xor, "xor")
226 CASE_S1x4_OP(Not, "not") 245 CASE_S1x4_OP(Not, "not")
227 CASE_S1x4_OP(AnyTrue, "any_true") 246 CASE_S1x4_OP(AnyTrue, "any_true")
228 CASE_S1x4_OP(AllTrue, "all_true") 247 CASE_S1x4_OP(AllTrue, "all_true")
229 CASE_S1x8_OP(And, "and") 248 CASE_S1x8_OP(And, "and")
230 CASE_S1x8_OP(Or, "or") 249 CASE_S1x8_OP(Or, "or")
231 CASE_S1x8_OP(Xor, "xor") 250 CASE_S1x8_OP(Xor, "xor")
232 CASE_S1x8_OP(Not, "not") 251 CASE_S1x8_OP(Not, "not")
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return MessageTemplate::kNone; 415 return MessageTemplate::kNone;
397 } 416 }
398 } 417 }
399 418
400 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { 419 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) {
401 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); 420 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason));
402 } 421 }
403 } // namespace wasm 422 } // namespace wasm
404 } // namespace internal 423 } // namespace internal
405 } // namespace v8 424 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698