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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 1360603003: [arm64] Implement Float(32|64)(Min|Max) using fcsel. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 __ j(cc, &set, Label::kNear); 1094 __ j(cc, &set, Label::kNear);
1095 __ Move(reg, Immediate(0)); 1095 __ Move(reg, Immediate(0));
1096 __ jmp(&done, Label::kNear); 1096 __ jmp(&done, Label::kNear);
1097 __ bind(&set); 1097 __ bind(&set);
1098 __ mov(reg, Immediate(1)); 1098 __ mov(reg, Immediate(1));
1099 } 1099 }
1100 __ bind(&done); 1100 __ bind(&done);
1101 } 1101 }
1102 1102
1103 1103
1104 void CodeGenerator::AssembleArchSelect(Instruction* instr,
1105 FlagsCondition condition) {
1106 // Unsupported.
1107 UNREACHABLE();
1108 }
1109
1110
1104 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { 1111 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) {
1105 IA32OperandConverter i(this, instr); 1112 IA32OperandConverter i(this, instr);
1106 Register input = i.InputRegister(0); 1113 Register input = i.InputRegister(0);
1107 for (size_t index = 2; index < instr->InputCount(); index += 2) { 1114 for (size_t index = 2; index < instr->InputCount(); index += 2) {
1108 __ cmp(input, Immediate(i.InputInt32(index + 0))); 1115 __ cmp(input, Immediate(i.InputInt32(index + 0)));
1109 __ j(equal, GetLabel(i.InputRpo(index + 1))); 1116 __ j(equal, GetLabel(i.InputRpo(index + 1)));
1110 } 1117 }
1111 AssembleArchJump(i.InputRpo(1)); 1118 AssembleArchJump(i.InputRpo(1));
1112 } 1119 }
1113 1120
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1541 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1535 __ Nop(padding_size); 1542 __ Nop(padding_size);
1536 } 1543 }
1537 } 1544 }
1538 1545
1539 #undef __ 1546 #undef __
1540 1547
1541 } // namespace compiler 1548 } // namespace compiler
1542 } // namespace internal 1549 } // namespace internal
1543 } // namespace v8 1550 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698