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

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

Issue 1765973002: [turbofan] Implementation of Word32PairShl on arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-shift
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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 DCHECK_EQ(SetCC, i.OutputSBit()); 736 DCHECK_EQ(SetCC, i.OutputSBit());
737 break; 737 break;
738 case kArmTst: 738 case kArmTst:
739 __ tst(i.InputRegister(0), i.InputOperand2(1)); 739 __ tst(i.InputRegister(0), i.InputOperand2(1));
740 DCHECK_EQ(SetCC, i.OutputSBit()); 740 DCHECK_EQ(SetCC, i.OutputSBit());
741 break; 741 break;
742 case kArmTeq: 742 case kArmTeq:
743 __ teq(i.InputRegister(0), i.InputOperand2(1)); 743 __ teq(i.InputRegister(0), i.InputOperand2(1));
744 DCHECK_EQ(SetCC, i.OutputSBit()); 744 DCHECK_EQ(SetCC, i.OutputSBit());
745 break; 745 break;
746 case kArmPairLsl:
747 if (instr->InputAt(2)->IsImmediate()) {
748 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
749 i.InputRegister(1), i.InputInt32(2));
750 } else {
751 __ PairLsl(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
752 i.InputRegister(1), kScratchReg, i.InputRegister(2));
753 }
754 break;
746 case kArmVcmpF32: 755 case kArmVcmpF32:
747 if (instr->InputAt(1)->IsDoubleRegister()) { 756 if (instr->InputAt(1)->IsDoubleRegister()) {
748 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), 757 __ VFPCompareAndSetFlags(i.InputFloat32Register(0),
749 i.InputFloat32Register(1)); 758 i.InputFloat32Register(1));
750 } else { 759 } else {
751 DCHECK(instr->InputAt(1)->IsImmediate()); 760 DCHECK(instr->InputAt(1)->IsImmediate());
752 // 0.0 is the only immediate supported by vcmp instructions. 761 // 0.0 is the only immediate supported by vcmp instructions.
753 DCHECK(i.InputFloat32(1) == 0.0f); 762 DCHECK(i.InputFloat32(1) == 0.0f);
754 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), i.InputFloat32(1)); 763 __ VFPCompareAndSetFlags(i.InputFloat32Register(0), i.InputFloat32(1));
755 } 764 }
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 padding_size -= v8::internal::Assembler::kInstrSize; 1481 padding_size -= v8::internal::Assembler::kInstrSize;
1473 } 1482 }
1474 } 1483 }
1475 } 1484 }
1476 1485
1477 #undef __ 1486 #undef __
1478 1487
1479 } // namespace compiler 1488 } // namespace compiler
1480 } // namespace internal 1489 } // namespace internal
1481 } // namespace v8 1490 } // 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