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

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

Issue 1776393004: [wasm] Fixed register allocation for Word32PairShl on 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/macro-assembler-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 kArmPairLsl: 801 case kArmLslPair:
802 if (instr->InputAt(2)->IsImmediate()) { 802 if (instr->InputAt(2)->IsImmediate()) {
803 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 803 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
804 i.InputRegister(1), i.InputInt32(2)); 804 i.InputRegister(1), i.InputInt32(2));
805 } else { 805 } else {
806 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0), 806 __ LslPair(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
807 i.InputRegister(1), kScratchReg, i.InputRegister(2)); 807 i.InputRegister(1), kScratchReg, i.InputRegister(2));
808 } 808 }
809 break; 809 break;
810 case kArmVcmpF32: 810 case kArmVcmpF32:
811 if (instr->InputAt(1)->IsDoubleRegister()) { 811 if (instr->InputAt(1)->IsDoubleRegister()) {
812 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), 812 __ VFPCompareAndSetFlags(i.InputFloat32Register(0),
813 i.InputFloat32Register(1)); 813 i.InputFloat32Register(1));
814 } else { 814 } else {
815 DCHECK(instr->InputAt(1)->IsImmediate()); 815 DCHECK(instr->InputAt(1)->IsImmediate());
816 // 0.0 is the only immediate supported by vcmp instructions. 816 // 0.0 is the only immediate supported by vcmp instructions.
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 padding_size -= v8::internal::Assembler::kInstrSize; 1538 padding_size -= v8::internal::Assembler::kInstrSize;
1539 } 1539 }
1540 } 1540 }
1541 } 1541 }
1542 1542
1543 #undef __ 1543 #undef __
1544 1544
1545 } // namespace compiler 1545 } // namespace compiler
1546 } // namespace internal 1546 } // namespace internal
1547 } // namespace v8 1547 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-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