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

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

Issue 2801183002: [WASM SIMD] Implement primitive shuffles. (Closed)
Patch Set: Fix non-ARM build. 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
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/cctest/test-macro-assembler-arm.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 #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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 CASE_SIGN_OP(SIMDI, Shr, "shr") 210 CASE_SIGN_OP(SIMDI, Shr, "shr")
211 CASE_SIMDI_OP(Shl, "shl") 211 CASE_SIMDI_OP(Shl, "shl")
212 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") 212 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate")
213 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") 213 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate")
214 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") 214 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate")
215 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") 215 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate")
216 CASE_S128_OP(And, "and") 216 CASE_S128_OP(And, "and")
217 CASE_S128_OP(Or, "or") 217 CASE_S128_OP(Or, "or")
218 CASE_S128_OP(Xor, "xor") 218 CASE_S128_OP(Xor, "xor")
219 CASE_S128_OP(Not, "not") 219 CASE_S128_OP(Not, "not")
220 CASE_S32x4_OP(ZipLeft, "zip left")
221 CASE_S32x4_OP(ZipRight, "zip right")
222 CASE_S32x4_OP(UnzipLeft, "unzip left")
223 CASE_S32x4_OP(UnzipRight, "unzip right")
224 CASE_S32x4_OP(TransposeLeft, "transpose left")
225 CASE_S32x4_OP(TransposeRight, "transpose right")
220 CASE_S32x4_OP(Select, "select") 226 CASE_S32x4_OP(Select, "select")
221 CASE_S32x4_OP(Swizzle, "swizzle") 227 CASE_S16x8_OP(ZipLeft, "zip left")
222 CASE_S32x4_OP(Shuffle, "shuffle") 228 CASE_S16x8_OP(ZipRight, "zip right")
229 CASE_S16x8_OP(UnzipLeft, "unzip left")
230 CASE_S16x8_OP(UnzipRight, "unzip right")
231 CASE_S16x8_OP(TransposeLeft, "transpose left")
232 CASE_S16x8_OP(TransposeRight, "transpose right")
223 CASE_S16x8_OP(Select, "select") 233 CASE_S16x8_OP(Select, "select")
224 CASE_S16x8_OP(Swizzle, "swizzle") 234 CASE_S8x16_OP(ZipLeft, "zip left")
225 CASE_S16x8_OP(Shuffle, "shuffle") 235 CASE_S8x16_OP(ZipRight, "zip right")
236 CASE_S8x16_OP(UnzipLeft, "unzip left")
237 CASE_S8x16_OP(UnzipRight, "unzip right")
238 CASE_S8x16_OP(TransposeLeft, "transpose left")
239 CASE_S8x16_OP(TransposeRight, "transpose right")
226 CASE_S8x16_OP(Select, "select") 240 CASE_S8x16_OP(Select, "select")
227 CASE_S8x16_OP(Swizzle, "swizzle") 241 CASE_S8x16_OP(Concat, "concat")
228 CASE_S8x16_OP(Shuffle, "shuffle") 242 CASE_OP(S32x2Reverse, "32x2 reverse")
243 CASE_OP(S16x4Reverse, "16x4 reverse")
244 CASE_OP(S16x2Reverse, "16x2 reverse")
245 CASE_OP(S8x8Reverse, "8x8 reverse")
246 CASE_OP(S8x4Reverse, "8x4 reverse")
247 CASE_OP(S8x2Reverse, "8x2 reverse")
229 CASE_S1x4_OP(And, "and") 248 CASE_S1x4_OP(And, "and")
230 CASE_S1x4_OP(Or, "or") 249 CASE_S1x4_OP(Or, "or")
231 CASE_S1x4_OP(Xor, "xor") 250 CASE_S1x4_OP(Xor, "xor")
232 CASE_S1x4_OP(Not, "not") 251 CASE_S1x4_OP(Not, "not")
233 CASE_S1x4_OP(AnyTrue, "any_true") 252 CASE_S1x4_OP(AnyTrue, "any_true")
234 CASE_S1x4_OP(AllTrue, "all_true") 253 CASE_S1x4_OP(AllTrue, "all_true")
235 CASE_S1x8_OP(And, "and") 254 CASE_S1x8_OP(And, "and")
236 CASE_S1x8_OP(Or, "or") 255 CASE_S1x8_OP(Or, "or")
237 CASE_S1x8_OP(Xor, "xor") 256 CASE_S1x8_OP(Xor, "xor")
238 CASE_S1x8_OP(Not, "not") 257 CASE_S1x8_OP(Not, "not")
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 return MessageTemplate::kNone; 421 return MessageTemplate::kNone;
403 } 422 }
404 } 423 }
405 424
406 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { 425 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) {
407 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); 426 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason));
408 } 427 }
409 } // namespace wasm 428 } // namespace wasm
410 } // namespace internal 429 } // namespace internal
411 } // namespace v8 430 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/cctest/test-macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698