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

Side by Side Diff: src/compiler/x64/code-generator-x64.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, 3 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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 cc = no_overflow; 1425 cc = no_overflow;
1426 break; 1426 break;
1427 } 1427 }
1428 __ bind(&check); 1428 __ bind(&check);
1429 __ setcc(cc, reg); 1429 __ setcc(cc, reg);
1430 __ movzxbl(reg, reg); 1430 __ movzxbl(reg, reg);
1431 __ bind(&done); 1431 __ bind(&done);
1432 } 1432 }
1433 1433
1434 1434
1435 void CodeGenerator::AssembleArchSelect(Instruction* instr,
1436 FlagsCondition condition) {
1437 // Unsupported.
1438 UNREACHABLE();
1439 }
1440
1441
1435 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { 1442 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) {
1436 X64OperandConverter i(this, instr); 1443 X64OperandConverter i(this, instr);
1437 Register input = i.InputRegister(0); 1444 Register input = i.InputRegister(0);
1438 for (size_t index = 2; index < instr->InputCount(); index += 2) { 1445 for (size_t index = 2; index < instr->InputCount(); index += 2) {
1439 __ cmpl(input, Immediate(i.InputInt32(index + 0))); 1446 __ cmpl(input, Immediate(i.InputInt32(index + 0)));
1440 __ j(equal, GetLabel(i.InputRpo(index + 1))); 1447 __ j(equal, GetLabel(i.InputRpo(index + 1)));
1441 } 1448 }
1442 AssembleArchJump(i.InputRpo(1)); 1449 AssembleArchJump(i.InputRpo(1));
1443 } 1450 }
1444 1451
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1785 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1779 __ Nop(padding_size); 1786 __ Nop(padding_size);
1780 } 1787 }
1781 } 1788 }
1782 1789
1783 #undef __ 1790 #undef __
1784 1791
1785 } // namespace internal 1792 } // namespace internal
1786 } // namespace compiler 1793 } // namespace compiler
1787 } // namespace v8 1794 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698