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

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

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/wasm/wasm-opcodes.h ('k') | test/cctest/wasm/test-run-wasm-simd.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 6
7 #include <array> 7 #include <array>
8 8
9 #include "src/base/template-utils.h" 9 #include "src/base/template-utils.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 CASE_I16x8_OP(AddHoriz, "add_horizontal") 212 CASE_I16x8_OP(AddHoriz, "add_horizontal")
213 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") 213 CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate")
214 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") 214 CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate")
215 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") 215 CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate")
216 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate") 216 CASE_SIGN_OP(I8x16, SubSaturate, "sub_saturate")
217 CASE_S128_OP(And, "and") 217 CASE_S128_OP(And, "and")
218 CASE_S128_OP(Or, "or") 218 CASE_S128_OP(Or, "or")
219 CASE_S128_OP(Xor, "xor") 219 CASE_S128_OP(Xor, "xor")
220 CASE_S128_OP(Not, "not") 220 CASE_S128_OP(Not, "not")
221 CASE_S128_OP(Select, "select") 221 CASE_S128_OP(Select, "select")
222 CASE_S32x4_OP(Shuffle, "shuffle")
223 CASE_S16x8_OP(Shuffle, "shuffle")
224 CASE_S8x16_OP(Shuffle, "shuffle") 222 CASE_S8x16_OP(Shuffle, "shuffle")
225 CASE_S1x4_OP(AnyTrue, "any_true") 223 CASE_S1x4_OP(AnyTrue, "any_true")
226 CASE_S1x4_OP(AllTrue, "all_true") 224 CASE_S1x4_OP(AllTrue, "all_true")
227 CASE_S1x8_OP(AnyTrue, "any_true") 225 CASE_S1x8_OP(AnyTrue, "any_true")
228 CASE_S1x8_OP(AllTrue, "all_true") 226 CASE_S1x8_OP(AllTrue, "all_true")
229 CASE_S1x16_OP(AnyTrue, "any_true") 227 CASE_S1x16_OP(AnyTrue, "any_true")
230 CASE_S1x16_OP(AllTrue, "all_true") 228 CASE_S1x16_OP(AllTrue, "all_true")
231 229
232 // Atomic operations. 230 // Atomic operations.
233 CASE_L32_OP(AtomicAdd, "atomic_add") 231 CASE_L32_OP(AtomicAdd, "atomic_add")
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 return MessageTemplate::kNone; 412 return MessageTemplate::kNone;
415 } 413 }
416 } 414 }
417 415
418 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) { 416 const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) {
419 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason)); 417 return MessageTemplate::TemplateString(TrapReasonToMessageId(reason));
420 } 418 }
421 } // namespace wasm 419 } // namespace wasm
422 } // namespace internal 420 } // namespace internal
423 } // namespace v8 421 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698