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

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: copy paste mistake 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // i.InputRegister(0) ... left low word. 784 // i.InputRegister(0) ... left low word.
785 // i.InputRegister(1) ... left high word. 785 // i.InputRegister(1) ... left high word.
786 // i.InputRegister(2) ... right low word. 786 // i.InputRegister(2) ... right low word.
787 // i.InputRegister(3) ... right high word. 787 // i.InputRegister(3) ... right high word.
788 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2), 788 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2),
789 SBit::SetCC); 789 SBit::SetCC);
790 __ adc(i.OutputRegister(1), i.InputRegister(1), 790 __ adc(i.OutputRegister(1), i.InputRegister(1),
791 Operand(i.InputRegister(3))); 791 Operand(i.InputRegister(3)));
792 DCHECK_EQ(LeaveCC, i.OutputSBit()); 792 DCHECK_EQ(LeaveCC, i.OutputSBit());
793 break; 793 break;
794 case kArmSubPair:
795 // i.InputRegister(0) ... left low word.
796 // i.InputRegister(1) ... left high word.
797 // i.InputRegister(2) ... right low word.
798 // i.InputRegister(3) ... right high word.
799 __ sub(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2),
800 SBit::SetCC);
801 __ sbc(i.OutputRegister(1), i.InputRegister(1),
802 Operand(i.InputRegister(3)));
803 DCHECK_EQ(LeaveCC, i.OutputSBit());
804 break;
794 case kArmPairLsl: 805 case kArmPairLsl:
795 if (instr->InputAt(2)->IsImmediate()) { 806 if (instr->InputAt(2)->IsImmediate()) {
796 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 807 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
797 i.InputRegister(1), i.InputInt32(2)); 808 i.InputRegister(1), i.InputInt32(2));
798 } else { 809 } else {
799 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 810 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
800 i.InputRegister(1), kScratchReg, i.InputRegister(2)); 811 i.InputRegister(1), kScratchReg, i.InputRegister(2));
801 } 812 }
802 break; 813 break;
803 case kArmVcmpF32: 814 case kArmVcmpF32:
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 padding_size -= v8::internal::Assembler::kInstrSize; 1542 padding_size -= v8::internal::Assembler::kInstrSize;
1532 } 1543 }
1533 } 1544 }
1534 } 1545 }
1535 1546
1536 #undef __ 1547 #undef __
1537 1548
1538 } // namespace compiler 1549 } // namespace compiler
1539 } // namespace internal 1550 } // namespace internal
1540 } // namespace v8 1551 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698