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

Side by Side Diff: src/arm/lithium-arm.h

Issue 11293061: Emit VMLA for multiply-add on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fold instruction when forming Lithium instead (+tests) Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 V(LoadKeyed) \ 128 V(LoadKeyed) \
129 V(LoadKeyedGeneric) \ 129 V(LoadKeyedGeneric) \
130 V(LoadNamedField) \ 130 V(LoadNamedField) \
131 V(LoadNamedFieldPolymorphic) \ 131 V(LoadNamedFieldPolymorphic) \
132 V(LoadNamedGeneric) \ 132 V(LoadNamedGeneric) \
133 V(MapEnumLength) \ 133 V(MapEnumLength) \
134 V(MathFloorOfDiv) \ 134 V(MathFloorOfDiv) \
135 V(MathMinMax) \ 135 V(MathMinMax) \
136 V(ModI) \ 136 V(ModI) \
137 V(MulI) \ 137 V(MulI) \
138 V(MultiplyAddD) \
138 V(NumberTagD) \ 139 V(NumberTagD) \
139 V(NumberTagI) \ 140 V(NumberTagI) \
140 V(NumberTagU) \ 141 V(NumberTagU) \
141 V(NumberUntagD) \ 142 V(NumberUntagD) \
142 V(ObjectLiteral) \ 143 V(ObjectLiteral) \
143 V(OsrEntry) \ 144 V(OsrEntry) \
144 V(OuterContext) \ 145 V(OuterContext) \
145 V(Parameter) \ 146 V(Parameter) \
146 V(Power) \ 147 V(Power) \
147 V(PushArgument) \ 148 V(PushArgument) \
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 615
615 LOperand* left() { return inputs_[0]; } 616 LOperand* left() { return inputs_[0]; }
616 LOperand* right() { return inputs_[1]; } 617 LOperand* right() { return inputs_[1]; }
617 LOperand* temp() { return temps_[0]; } 618 LOperand* temp() { return temps_[0]; }
618 619
619 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") 620 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
620 DECLARE_HYDROGEN_ACCESSOR(Mul) 621 DECLARE_HYDROGEN_ACCESSOR(Mul)
621 }; 622 };
622 623
623 624
625 class LMultiplyAddD: public LTemplateInstruction<1, 3, 0> {
626 public:
627 LMultiplyAddD(LOperand* c, LOperand *a, LOperand* b) {
Sven Panne 2012/11/13 13:03:52 Can we use something less cryptic for the operands
Jakob Kummerow 2012/11/13 13:05:21 I'd appreciate a comment here what the three opera
hans 2012/11/13 14:59:58 Done.
hans 2012/11/13 14:59:58 Done.
628 inputs_[0] = c;
629 inputs_[1] = a;
630 inputs_[2] = b;
631 }
632
633 LOperand* c() { return inputs_[0]; }
634 LOperand* a() { return inputs_[1]; }
635 LOperand* b() { return inputs_[2]; }
636
637 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d")
638 };
639
640
624 class LCmpIDAndBranch: public LControlInstruction<2, 0> { 641 class LCmpIDAndBranch: public LControlInstruction<2, 0> {
625 public: 642 public:
626 LCmpIDAndBranch(LOperand* left, LOperand* right) { 643 LCmpIDAndBranch(LOperand* left, LOperand* right) {
627 inputs_[0] = left; 644 inputs_[0] = left;
628 inputs_[1] = right; 645 inputs_[1] = right;
629 } 646 }
630 647
631 LOperand* left() { return inputs_[0]; } 648 LOperand* left() { return inputs_[0]; }
632 LOperand* right() { return inputs_[1]; } 649 LOperand* right() { return inputs_[1]; }
633 650
(...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after
2524 2541
2525 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2542 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2526 }; 2543 };
2527 2544
2528 #undef DECLARE_HYDROGEN_ACCESSOR 2545 #undef DECLARE_HYDROGEN_ACCESSOR
2529 #undef DECLARE_CONCRETE_INSTRUCTION 2546 #undef DECLARE_CONCRETE_INSTRUCTION
2530 2547
2531 } } // namespace v8::internal 2548 } } // namespace v8::internal
2532 2549
2533 #endif // V8_ARM_LITHIUM_ARM_H_ 2550 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | src/arm/lithium-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698