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

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

Issue 1778493004: [wasm] Int64Lowering of Int64Add on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed the use of the temp register on arm. 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 DCHECK_EQ(SetCC, i.OutputSBit()); 773 DCHECK_EQ(SetCC, i.OutputSBit());
774 break; 774 break;
775 case kArmTst: 775 case kArmTst:
776 __ tst(i.InputRegister(0), i.InputOperand2(1)); 776 __ tst(i.InputRegister(0), i.InputOperand2(1));
777 DCHECK_EQ(SetCC, i.OutputSBit()); 777 DCHECK_EQ(SetCC, i.OutputSBit());
778 break; 778 break;
779 case kArmTeq: 779 case kArmTeq:
780 __ teq(i.InputRegister(0), i.InputOperand2(1)); 780 __ teq(i.InputRegister(0), i.InputOperand2(1));
781 DCHECK_EQ(SetCC, i.OutputSBit()); 781 DCHECK_EQ(SetCC, i.OutputSBit());
782 break; 782 break;
783 case kArmAddPair:
784 // i.InputRegister(0) ... left low word.
785 // i.InputRegister(1) ... left high word.
786 // i.InputRegister(2) ... right low word.
787 // i.InputRegister(3) ... right high word.
788 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2),
789 SBit::SetCC);
790 __ adc(i.OutputRegister(1), i.InputRegister(1),
791 Operand(i.InputRegister(3)));
792 DCHECK_EQ(LeaveCC, i.OutputSBit());
793 break;
783 case kArmPairLsl: 794 case kArmPairLsl:
784 if (instr->InputAt(2)->IsImmediate()) { 795 if (instr->InputAt(2)->IsImmediate()) {
785 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 796 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
786 i.InputRegister(1), i.InputInt32(2)); 797 i.InputRegister(1), i.InputInt32(2));
787 } else { 798 } else {
788 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 799 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
789 i.InputRegister(1), kScratchReg, i.InputRegister(2)); 800 i.InputRegister(1), kScratchReg, i.InputRegister(2));
790 } 801 }
791 break; 802 break;
792 case kArmVcmpF32: 803 case kArmVcmpF32:
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 padding_size -= v8::internal::Assembler::kInstrSize; 1531 padding_size -= v8::internal::Assembler::kInstrSize;
1521 } 1532 }
1522 } 1533 }
1523 } 1534 }
1524 1535
1525 #undef __ 1536 #undef __
1526 1537
1527 } // namespace compiler 1538 } // namespace compiler
1528 } // namespace internal 1539 } // namespace internal
1529 } // namespace v8 1540 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | src/compiler/arm/instruction-selector-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698