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

Side by Side Diff: src/x64/lithium-x64.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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 V(LoadGlobalGeneric) \ 128 V(LoadGlobalGeneric) \
129 V(LoadKeyed) \ 129 V(LoadKeyed) \
130 V(LoadKeyedGeneric) \ 130 V(LoadKeyedGeneric) \
131 V(LoadNamedField) \ 131 V(LoadNamedField) \
132 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
133 V(LoadNamedGeneric) \ 133 V(LoadNamedGeneric) \
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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 } 599 }
599 600
600 LOperand* left() { return inputs_[0]; } 601 LOperand* left() { return inputs_[0]; }
601 LOperand* right() { return inputs_[1]; } 602 LOperand* right() { return inputs_[1]; }
602 603
603 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") 604 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
604 DECLARE_HYDROGEN_ACCESSOR(Mul) 605 DECLARE_HYDROGEN_ACCESSOR(Mul)
605 }; 606 };
606 607
607 608
609 class LMultiplyAddD: public LTemplateInstruction<1, 3, 0> {
610 public:
611 LMultiplyAddD(LOperand* a, LOperand* b, LOperand* c) {
612 inputs_[0] = a;
613 inputs_[1] = b;
614 inputs_[2] = c;
615 }
616
617 LOperand* a() { return inputs_[0]; }
618 LOperand* b() { return inputs_[1]; }
619 LOperand* c() { return inputs_[2]; }
620
621 DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d")
622 DECLARE_HYDROGEN_ACCESSOR(MultiplyAddD)
623 };
624
625
608 class LCmpIDAndBranch: public LControlInstruction<2, 0> { 626 class LCmpIDAndBranch: public LControlInstruction<2, 0> {
609 public: 627 public:
610 LCmpIDAndBranch(LOperand* left, LOperand* right) { 628 LCmpIDAndBranch(LOperand* left, LOperand* right) {
611 inputs_[0] = left; 629 inputs_[0] = left;
612 inputs_[1] = right; 630 inputs_[1] = right;
613 } 631 }
614 632
615 LOperand* left() { return inputs_[0]; } 633 LOperand* left() { return inputs_[0]; }
616 LOperand* right() { return inputs_[1]; } 634 LOperand* right() { return inputs_[1]; }
617 635
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 2511
2494 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2512 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2495 }; 2513 };
2496 2514
2497 #undef DECLARE_HYDROGEN_ACCESSOR 2515 #undef DECLARE_HYDROGEN_ACCESSOR
2498 #undef DECLARE_CONCRETE_INSTRUCTION 2516 #undef DECLARE_CONCRETE_INSTRUCTION
2499 2517
2500 } } // namespace v8::int 2518 } } // namespace v8::int
2501 2519
2502 #endif // V8_X64_LITHIUM_X64_H_ 2520 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698