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

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

Issue 12374046: Tweak register allocation for Math.round and do not use roundsd. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('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 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 V(LoadKeyed) \ 125 V(LoadKeyed) \
126 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
127 V(LoadNamedField) \ 127 V(LoadNamedField) \
128 V(LoadNamedFieldPolymorphic) \ 128 V(LoadNamedFieldPolymorphic) \
129 V(LoadNamedGeneric) \ 129 V(LoadNamedGeneric) \
130 V(MapEnumLength) \ 130 V(MapEnumLength) \
131 V(MathExp) \ 131 V(MathExp) \
132 V(MathFloorOfDiv) \ 132 V(MathFloorOfDiv) \
133 V(MathMinMax) \ 133 V(MathMinMax) \
134 V(MathPowHalf) \ 134 V(MathPowHalf) \
135 V(MathRound) \
135 V(ModI) \ 136 V(ModI) \
136 V(MulI) \ 137 V(MulI) \
137 V(NumberTagD) \ 138 V(NumberTagD) \
138 V(NumberTagI) \ 139 V(NumberTagI) \
139 V(NumberTagU) \ 140 V(NumberTagU) \
140 V(NumberUntagD) \ 141 V(NumberUntagD) \
141 V(ObjectLiteral) \ 142 V(ObjectLiteral) \
142 V(OsrEntry) \ 143 V(OsrEntry) \
143 V(OuterContext) \ 144 V(OuterContext) \
144 V(Parameter) \ 145 V(Parameter) \
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 LOperand* context() { return inputs_[1]; } 694 LOperand* context() { return inputs_[1]; }
694 LOperand* value() { return inputs_[0]; } 695 LOperand* value() { return inputs_[0]; }
695 LOperand* temp() { return temps_[0]; } 696 LOperand* temp() { return temps_[0]; }
696 697
697 DECLARE_CONCRETE_INSTRUCTION(MathPowHalf, "math-pow-half") 698 DECLARE_CONCRETE_INSTRUCTION(MathPowHalf, "math-pow-half")
698 699
699 virtual void PrintDataTo(StringStream* stream); 700 virtual void PrintDataTo(StringStream* stream);
700 }; 701 };
701 702
702 703
704 class LMathRound: public LTemplateInstruction<1, 2, 1> {
705 public:
706 LMathRound(LOperand* context, LOperand* value, LOperand* temp) {
707 inputs_[1] = context;
708 inputs_[0] = value;
709 temps_[0] = temp;
710 }
711
712 LOperand* context() { return inputs_[1]; }
713 LOperand* value() { return inputs_[0]; }
714 LOperand* temp() { return temps_[0]; }
715
716 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round")
717 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
718
719 virtual void PrintDataTo(StringStream* stream);
720 };
721
722
703 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> { 723 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
704 public: 724 public:
705 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { 725 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
706 inputs_[0] = left; 726 inputs_[0] = left;
707 inputs_[1] = right; 727 inputs_[1] = right;
708 } 728 }
709 729
710 LOperand* left() { return inputs_[0]; } 730 LOperand* left() { return inputs_[0]; }
711 LOperand* right() { return inputs_[1]; } 731 LOperand* right() { return inputs_[1]; }
712 732
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 2809
2790 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2810 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2791 }; 2811 };
2792 2812
2793 #undef DECLARE_HYDROGEN_ACCESSOR 2813 #undef DECLARE_HYDROGEN_ACCESSOR
2794 #undef DECLARE_CONCRETE_INSTRUCTION 2814 #undef DECLARE_CONCRETE_INSTRUCTION
2795 2815
2796 } } // namespace v8::internal 2816 } } // namespace v8::internal
2797 2817
2798 #endif // V8_IA32_LITHIUM_IA32_H_ 2818 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698