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

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

Issue 2220483003: [x64] Zero/sign-extend loads to 64-bit registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed a couple of wrong assertions. 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:
134 case kX64Movsxwl: 136 case kX64Movsxwl:
135 case kX64Movzxwl: 137 case kX64Movzxwl:
138 case kX64Movsxwq:
139 case kX64Movzxwq:
136 case kX64Movsxlq: 140 case kX64Movsxlq:
137 DCHECK(instr->InputCount() >= 1); 141 DCHECK(instr->InputCount() >= 1);
138 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags 142 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags
139 : kIsLoadOperation; 143 : kIsLoadOperation;
140 144
141 case kX64Movb: 145 case kX64Movb:
142 case kX64Movw: 146 case kX64Movw:
143 return kHasSideEffect; 147 return kHasSideEffect;
144 148
145 case kX64Movl: 149 case kX64Movl:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 185
182 186
183 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { 187 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) {
184 // TODO(all): Add instruction cost modeling. 188 // TODO(all): Add instruction cost modeling.
185 return 1; 189 return 1;
186 } 190 }
187 191
188 } // namespace compiler 192 } // namespace compiler
189 } // namespace internal 193 } // namespace internal
190 } // namespace v8 194 } // 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