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

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

Issue 2385393002: [wasm] Implement I32x4ReplaceLane, I32x4Add, I32x4Sub. (Closed)
Patch Set: Bill's review Created 4 years, 2 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/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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 197
195 198
196 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { 199 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) {
197 // TODO(all): Add instruction cost modeling. 200 // TODO(all): Add instruction cost modeling.
198 return 1; 201 return 1;
199 } 202 }
200 203
201 } // namespace compiler 204 } // namespace compiler
202 } // namespace internal 205 } // namespace internal
203 } // namespace v8 206 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698