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

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

Issue 1780193003: [turbofan] Byte and word memory operands in x64 cmp/test. Fixes arithmetic_op_8 in assembler-x64.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes cmpb. Created 4 years, 9 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
11 bool InstructionScheduler::SchedulerSupported() { return true; } 11 bool InstructionScheduler::SchedulerSupported() { return true; }
12 12
13 13
14 int InstructionScheduler::GetTargetInstructionFlags( 14 int InstructionScheduler::GetTargetInstructionFlags(
15 const Instruction* instr) const { 15 const Instruction* instr) const {
16 switch (instr->arch_opcode()) { 16 switch (instr->arch_opcode()) {
17 case kX64Add: 17 case kX64Add:
18 case kX64Add32: 18 case kX64Add32:
19 case kX64And: 19 case kX64And:
20 case kX64And32: 20 case kX64And32:
21 case kX64Cmp: 21 case kX64Cmp:
22 case kX64Cmp32: 22 case kX64Cmp32:
23 case kX64Cmp16:
24 case kX64Cmp8:
23 case kX64Test: 25 case kX64Test:
24 case kX64Test32: 26 case kX64Test32:
27 case kX64Test16:
28 case kX64Test8:
25 case kX64Or: 29 case kX64Or:
26 case kX64Or32: 30 case kX64Or32:
27 case kX64Xor: 31 case kX64Xor:
28 case kX64Xor32: 32 case kX64Xor32:
29 case kX64Sub: 33 case kX64Sub:
30 case kX64Sub32: 34 case kX64Sub32:
31 case kX64Imul: 35 case kX64Imul:
32 case kX64Imul32: 36 case kX64Imul32:
33 case kX64ImulHigh32: 37 case kX64ImulHigh32:
34 case kX64UmulHigh32: 38 case kX64UmulHigh32:
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 181
178 182
179 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { 183 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) {
180 // TODO(all): Add instruction cost modeling. 184 // TODO(all): Add instruction cost modeling.
181 return 1; 185 return 1;
182 } 186 }
183 187
184 } // namespace compiler 188 } // namespace compiler
185 } // namespace internal 189 } // namespace internal
186 } // 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