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

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: Fixed nits. 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 DCHECK_EQ(SetCC, i.OutputSBit()); 776 DCHECK_EQ(SetCC, i.OutputSBit());
777 break; 777 break;
778 case kArmTst: 778 case kArmTst:
779 __ tst(i.InputRegister(0), i.InputOperand2(1)); 779 __ tst(i.InputRegister(0), i.InputOperand2(1));
780 DCHECK_EQ(SetCC, i.OutputSBit()); 780 DCHECK_EQ(SetCC, i.OutputSBit());
781 break; 781 break;
782 case kArmTeq: 782 case kArmTeq:
783 __ teq(i.InputRegister(0), i.InputOperand2(1)); 783 __ teq(i.InputRegister(0), i.InputOperand2(1));
784 DCHECK_EQ(SetCC, i.OutputSBit()); 784 DCHECK_EQ(SetCC, i.OutputSBit());
785 break; 785 break;
786 case kArmAddPair:
787 // i.InputRegister(0) ... left low word.
788 // i.InputRegister(1) ... left high word.
789 // i.InputRegister(2) ... right low word.
790 // i.InputRegister(3) ... right high word.
791 __ add(i.OutputRegister(0), i.InputRegister(0), i.InputRegister(2),
792 SBit::SetCC);
793 __ adc(i.OutputRegister(1), i.InputRegister(1),
794 Operand(i.InputRegister(3)));
795 DCHECK_EQ(LeaveCC, i.OutputSBit());
796 break;
786 case kArmPairLsl: 797 case kArmPairLsl:
787 if (instr->InputAt(2)->IsImmediate()) { 798 if (instr->InputAt(2)->IsImmediate()) {
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), i.InputInt32(2)); 800 i.InputRegister(1), i.InputInt32(2));
790 } else { 801 } else {
791 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 802 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
792 i.InputRegister(1), kScratchReg, i.InputRegister(2)); 803 i.InputRegister(1), kScratchReg, i.InputRegister(2));
793 } 804 }
794 break; 805 break;
795 case kArmVcmpF32: 806 case kArmVcmpF32:
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 padding_size -= v8::internal::Assembler::kInstrSize; 1534 padding_size -= v8::internal::Assembler::kInstrSize;
1524 } 1535 }
1525 } 1536 }
1526 } 1537 }
1527 1538
1528 #undef __ 1539 #undef __
1529 1540
1530 } // namespace compiler 1541 } // namespace compiler
1531 } // namespace internal 1542 } // namespace internal
1532 } // namespace v8 1543 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | test/cctest/wasm/test-run-wasm-64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698