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

Side by Side Diff: src/compiler/x64/instruction-scheduler-x64.cc

Issue 2385393002: [wasm] Implement I32x4ReplaceLane, I32x4Add, I32x4Sub. (Closed)
Patch Set: Add lanes as compile time constants Created 4 years 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/compiler/instruction-scheduler.h" 5 #include "src/compiler/instruction-scheduler.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 case kX64BitcastFI: 118 case kX64BitcastFI:
119 case kX64BitcastDL: 119 case kX64BitcastDL:
120 case kX64BitcastIF: 120 case kX64BitcastIF:
121 case kX64BitcastLD: 121 case kX64BitcastLD:
122 case kX64Lea32: 122 case kX64Lea32:
123 case kX64Lea: 123 case kX64Lea:
124 case kX64Dec32: 124 case kX64Dec32:
125 case kX64Inc32: 125 case kX64Inc32:
126 case kX64Int32x4Create: 126 case kX64Int32x4Create:
127 case kX64Int32x4ExtractLane: 127 case kX64Int32x4ExtractLane:
128 case kX64Int32x4ReplaceLane:
129 case kX64Int32x4Add:
130 case kX64Int32x4Sub:
128 return (instr->addressing_mode() == kMode_None) 131 return (instr->addressing_mode() == kMode_None)
129 ? kNoOpcodeFlags 132 ? kNoOpcodeFlags
130 : kIsLoadOperation | kHasSideEffect; 133 : kIsLoadOperation | kHasSideEffect;
131 134
132 case kX64Idiv: 135 case kX64Idiv:
133 case kX64Idiv32: 136 case kX64Idiv32:
134 case kX64Udiv: 137 case kX64Udiv:
135 case kX64Udiv32: 138 case kX64Udiv32:
136 return (instr->addressing_mode() == kMode_None) 139 return (instr->addressing_mode() == kMode_None)
137 ? kMayNeedDeoptCheck 140 ? kMayNeedDeoptCheck
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 case kArchTruncateDoubleToI: 265 case kArchTruncateDoubleToI:
263 return 6; 266 return 6;
264 default: 267 default:
265 return 1; 268 return 1;
266 } 269 }
267 } 270 }
268 271
269 } // namespace compiler 272 } // namespace compiler
270 } // namespace internal 273 } // namespace internal
271 } // namespace v8 274 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698