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

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

Issue 2221473002: Revert of [x64] Zero/sign-extend loads to 64-bit registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/compiler/x64/instruction-codes-x64.h ('k') | src/compiler/x64/instruction-selector-x64.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/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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 case kX64Lea32: 124 case kX64Lea32:
125 case kX64Lea: 125 case kX64Lea:
126 case kX64Dec32: 126 case kX64Dec32:
127 case kX64Inc32: 127 case kX64Inc32:
128 return (instr->addressing_mode() == kMode_None) 128 return (instr->addressing_mode() == kMode_None)
129 ? kNoOpcodeFlags 129 ? kNoOpcodeFlags
130 : kIsLoadOperation | kHasSideEffect; 130 : kIsLoadOperation | kHasSideEffect;
131 131
132 case kX64Movsxbl: 132 case kX64Movsxbl:
133 case kX64Movzxbl: 133 case kX64Movzxbl:
134 case kX64Movsxbq:
135 case kX64Movzxbq:
136 case kX64Movsxwl: 134 case kX64Movsxwl:
137 case kX64Movzxwl: 135 case kX64Movzxwl:
138 case kX64Movsxwq:
139 case kX64Movzxwq:
140 case kX64Movsxlq: 136 case kX64Movsxlq:
141 DCHECK(instr->InputCount() >= 1); 137 DCHECK(instr->InputCount() >= 1);
142 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags 138 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags
143 : kIsLoadOperation; 139 : kIsLoadOperation;
144 140
145 case kX64Movb: 141 case kX64Movb:
146 case kX64Movw: 142 case kX64Movw:
147 return kHasSideEffect; 143 return kHasSideEffect;
148 144
149 case kX64Movl: 145 case kX64Movl:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 181
186 182
187 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { 183 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) {
188 // TODO(all): Add instruction cost modeling. 184 // TODO(all): Add instruction cost modeling.
189 return 1; 185 return 1;
190 } 186 }
191 187
192 } // namespace compiler 188 } // namespace compiler
193 } // namespace internal 189 } // namespace internal
194 } // namespace v8 190 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-codes-x64.h ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698