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

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

Issue 1778893005: [wasm] Int64Lowering of Int64Sub on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-add
Patch Set: Rebase. 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/arm/simulator-arm.cc ('k') | src/compiler/arm/instruction-codes-arm.h » ('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 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 // i.InputRegister(0) ... left low word. 791 // i.InputRegister(0) ... left low word.
792 // i.InputRegister(1) ... left high word. 792 // i.InputRegister(1) ... left high word.
793 // i.InputRegister(2) ... right low word. 793 // i.InputRegister(2) ... right low word.
794 // i.InputRegister(3) ... right high word. 794 // i.InputRegister(3) ... right high word.
795 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2), 795 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2),
796 SBit::SetCC); 796 SBit::SetCC);
797 __ adc(i.OutputRegister(1), i.InputRegister(1), 797 __ adc(i.OutputRegister(1), i.InputRegister(1),
798 Operand(i.InputRegister(3))); 798 Operand(i.InputRegister(3)));
799 DCHECK_EQ(LeaveCC, i.OutputSBit()); 799 DCHECK_EQ(LeaveCC, i.OutputSBit());
800 break; 800 break;
801 case kArmSubPair:
802 // i.InputRegister(0) ... left low word.
803 // i.InputRegister(1) ... left high word.
804 // i.InputRegister(2) ... right low word.
805 // i.InputRegister(3) ... right high word.
806 __ sub(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2),
807 SBit::SetCC);
808 __ sbc(i.OutputRegister(1), i.InputRegister(1),
809 Operand(i.InputRegister(3)));
810 DCHECK_EQ(LeaveCC, i.OutputSBit());
811 break;
801 case kArmLslPair: 812 case kArmLslPair:
802 if (instr->InputAt(2)->IsImmediate()) { 813 if (instr->InputAt(2)->IsImmediate()) {
803 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 814 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
804 i.InputRegister(1), i.InputInt32(2)); 815 i.InputRegister(1), i.InputInt32(2));
805 } else { 816 } else {
806 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 817 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
807 i.InputRegister(1), kScratchReg, i.InputRegister(2)); 818 i.InputRegister(1), kScratchReg, i.InputRegister(2));
808 } 819 }
809 break; 820 break;
810 case kArmLsrPair: 821 case kArmLsrPair:
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 padding_size -= v8::internal::Assembler::kInstrSize; 1567 padding_size -= v8::internal::Assembler::kInstrSize;
1557 } 1568 }
1558 } 1569 }
1559 } 1570 }
1560 1571
1561 #undef __ 1572 #undef __
1562 1573
1563 } // namespace compiler 1574 } // namespace compiler
1564 } // namespace internal 1575 } // namespace internal
1565 } // namespace v8 1576 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698