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

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

Issue 11293061: Emit VMLA for multiply-add on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Clean up and support other targets 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 V(LoadKeyedGeneric) \ 123 V(LoadKeyedGeneric) \
124 V(LoadNamedField) \ 124 V(LoadNamedField) \
125 V(LoadNamedFieldPolymorphic) \ 125 V(LoadNamedFieldPolymorphic) \
126 V(LoadNamedGeneric) \ 126 V(LoadNamedGeneric) \
127 V(MapEnumLength) \ 127 V(MapEnumLength) \
128 V(MathFloorOfDiv) \ 128 V(MathFloorOfDiv) \
129 V(MathMinMax) \ 129 V(MathMinMax) \
130 V(MathPowHalf) \ 130 V(MathPowHalf) \
131 V(ModI) \ 131 V(ModI) \
132 V(MulI) \ 132 V(MulI) \
133 V(MultiplyAddD) \
133 V(NumberTagD) \ 134 V(NumberTagD) \
134 V(NumberTagI) \ 135 V(NumberTagI) \
135 V(NumberTagU) \ 136 V(NumberTagU) \
136 V(NumberUntagD) \ 137 V(NumberUntagD) \
137 V(ObjectLiteral) \ 138 V(ObjectLiteral) \
138 V(OsrEntry) \ 139 V(OsrEntry) \
139 V(OuterContext) \ 140 V(OuterContext) \
140 V(Parameter) \ 141 V(Parameter) \
141 V(Power) \ 142 V(Power) \
142 V(Random) \ 143 V(Random) \
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 593
593 LOperand* left() { return inputs_[0]; } 594 LOperand* left() { return inputs_[0]; }
594 LOperand* right() { return inputs_[1]; } 595 LOperand* right() { return inputs_[1]; }
595 LOperand* temp() { return temps_[0]; } 596 LOperand* temp() { return temps_[0]; }
596 597
597 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") 598 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
598 DECLARE_HYDROGEN_ACCESSOR(Mul) 599 DECLARE_HYDROGEN_ACCESSOR(Mul)
599 }; 600 };
600 601
601 602
603 class LMultiplyAddD: public LTemplateInstruction<1, 3, 0> {
604 public:
605 LMultiplyAddD(LOperand* a, LOperand* b, LOperand* c) {
606 inputs_[0] = a;
607 inputs_[1] = b;
608 inputs_[2] = c;
609 }
610
611 LOperand* a() { return inputs_[0]; }
612 LOperand* b() { return inputs_[1]; }
613 LOperand* c() { return inputs_[2]; }
614
615 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d")
616 DECLARE_HYDROGEN_ACCESSOR(MultiplyAddD)
617 };
618
619
602 class LCmpIDAndBranch: public LControlInstruction<2, 0> { 620 class LCmpIDAndBranch: public LControlInstruction<2, 0> {
603 public: 621 public:
604 LCmpIDAndBranch(LOperand* left, LOperand* right) { 622 LCmpIDAndBranch(LOperand* left, LOperand* right) {
605 inputs_[0] = left; 623 inputs_[0] = left;
606 inputs_[1] = right; 624 inputs_[1] = right;
607 } 625 }
608 626
609 LOperand* left() { return inputs_[0]; } 627 LOperand* left() { return inputs_[0]; }
610 LOperand* right() { return inputs_[1]; } 628 LOperand* right() { return inputs_[1]; }
611 629
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 2676
2659 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2677 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2660 }; 2678 };
2661 2679
2662 #undef DECLARE_HYDROGEN_ACCESSOR 2680 #undef DECLARE_HYDROGEN_ACCESSOR
2663 #undef DECLARE_CONCRETE_INSTRUCTION 2681 #undef DECLARE_CONCRETE_INSTRUCTION
2664 2682
2665 } } // namespace v8::internal 2683 } } // namespace v8::internal
2666 2684
2667 #endif // V8_IA32_LITHIUM_IA32_H_ 2685 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698