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

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

Issue 104203003: Remove unused trigonometric code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 7 years 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 V(LoadFunctionPrototype) \ 126 V(LoadFunctionPrototype) \
127 V(LoadGlobalCell) \ 127 V(LoadGlobalCell) \
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(LoadNamedGeneric) \ 132 V(LoadNamedGeneric) \
133 V(LoadRoot) \ 133 V(LoadRoot) \
134 V(MapEnumLength) \ 134 V(MapEnumLength) \
135 V(MathAbs) \ 135 V(MathAbs) \
136 V(MathCos) \
137 V(MathExp) \ 136 V(MathExp) \
138 V(MathFloor) \ 137 V(MathFloor) \
139 V(MathFloorOfDiv) \ 138 V(MathFloorOfDiv) \
140 V(MathLog) \ 139 V(MathLog) \
141 V(MathMinMax) \ 140 V(MathMinMax) \
142 V(MathPowHalf) \ 141 V(MathPowHalf) \
143 V(MathRound) \ 142 V(MathRound) \
144 V(MathSin) \
145 V(MathSqrt) \ 143 V(MathSqrt) \
146 V(MathTan) \
147 V(ModI) \ 144 V(ModI) \
148 V(MulI) \ 145 V(MulI) \
149 V(NumberTagD) \ 146 V(NumberTagD) \
150 V(NumberTagI) \ 147 V(NumberTagI) \
151 V(NumberTagU) \ 148 V(NumberTagU) \
152 V(NumberUntagD) \ 149 V(NumberUntagD) \
153 V(OsrEntry) \ 150 V(OsrEntry) \
154 V(OuterContext) \ 151 V(OuterContext) \
155 V(Parameter) \ 152 V(Parameter) \
156 V(Power) \ 153 V(Power) \
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 explicit LMathLog(LOperand* value) { 782 explicit LMathLog(LOperand* value) {
786 inputs_[0] = value; 783 inputs_[0] = value;
787 } 784 }
788 785
789 LOperand* value() { return inputs_[0]; } 786 LOperand* value() { return inputs_[0]; }
790 787
791 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") 788 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log")
792 }; 789 };
793 790
794 791
795 class LMathSin V8_FINAL : public LTemplateInstruction<1, 1, 0> {
796 public:
797 explicit LMathSin(LOperand* value) {
798 inputs_[0] = value;
799 }
800
801 LOperand* value() { return inputs_[0]; }
802
803 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin")
804 };
805
806
807 class LMathCos V8_FINAL : public LTemplateInstruction<1, 1, 0> {
808 public:
809 explicit LMathCos(LOperand* value) {
810 inputs_[0] = value;
811 }
812
813 LOperand* value() { return inputs_[0]; }
814
815 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos")
816 };
817
818
819 class LMathTan V8_FINAL : public LTemplateInstruction<1, 1, 0> {
820 public:
821 explicit LMathTan(LOperand* value) {
822 inputs_[0] = value;
823 }
824
825 LOperand* value() { return inputs_[0]; }
826
827 DECLARE_CONCRETE_INSTRUCTION(MathTan, "math-tan")
828 };
829
830
831 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> { 792 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 2> {
832 public: 793 public:
833 LMathExp(LOperand* value, 794 LMathExp(LOperand* value,
834 LOperand* temp1, 795 LOperand* temp1,
835 LOperand* temp2) { 796 LOperand* temp2) {
836 inputs_[0] = value; 797 inputs_[0] = value;
837 temps_[0] = temp1; 798 temps_[0] = temp1;
838 temps_[1] = temp2; 799 temps_[1] = temp2;
839 ExternalReference::InitializeMathExpData(); 800 ExternalReference::InitializeMathExpData();
840 } 801 }
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2741 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2781 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2742 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2782 #undef DECLARE_DO 2743 #undef DECLARE_DO
2783 2744
2784 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); 2745 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val);
2785 2746
2786 LInstruction* DoMathFloor(HUnaryMathOperation* instr); 2747 LInstruction* DoMathFloor(HUnaryMathOperation* instr);
2787 LInstruction* DoMathRound(HUnaryMathOperation* instr); 2748 LInstruction* DoMathRound(HUnaryMathOperation* instr);
2788 LInstruction* DoMathAbs(HUnaryMathOperation* instr); 2749 LInstruction* DoMathAbs(HUnaryMathOperation* instr);
2789 LInstruction* DoMathLog(HUnaryMathOperation* instr); 2750 LInstruction* DoMathLog(HUnaryMathOperation* instr);
2790 LInstruction* DoMathSin(HUnaryMathOperation* instr);
2791 LInstruction* DoMathCos(HUnaryMathOperation* instr);
2792 LInstruction* DoMathTan(HUnaryMathOperation* instr);
2793 LInstruction* DoMathExp(HUnaryMathOperation* instr); 2751 LInstruction* DoMathExp(HUnaryMathOperation* instr);
2794 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); 2752 LInstruction* DoMathSqrt(HUnaryMathOperation* instr);
2795 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); 2753 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr);
2796 2754
2797 private: 2755 private:
2798 enum Status { 2756 enum Status {
2799 UNUSED, 2757 UNUSED,
2800 BUILDING, 2758 BUILDING,
2801 DONE, 2759 DONE,
2802 ABORTED 2760 ABORTED
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2936 2894
2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2895 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2938 }; 2896 };
2939 2897
2940 #undef DECLARE_HYDROGEN_ACCESSOR 2898 #undef DECLARE_HYDROGEN_ACCESSOR
2941 #undef DECLARE_CONCRETE_INSTRUCTION 2899 #undef DECLARE_CONCRETE_INSTRUCTION
2942 2900
2943 } } // namespace v8::internal 2901 } } // namespace v8::internal
2944 2902
2945 #endif // V8_IA32_LITHIUM_IA32_H_ 2903 #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