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

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

Issue 18712002: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 years, 5 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 V(InstanceSize) \ 107 V(InstanceSize) \
108 V(InstructionGap) \ 108 V(InstructionGap) \
109 V(Integer32ToDouble) \ 109 V(Integer32ToDouble) \
110 V(Integer32ToSmi) \ 110 V(Integer32ToSmi) \
111 V(Uint32ToDouble) \ 111 V(Uint32ToDouble) \
112 V(InvokeFunction) \ 112 V(InvokeFunction) \
113 V(IsConstructCallAndBranch) \ 113 V(IsConstructCallAndBranch) \
114 V(IsObjectAndBranch) \ 114 V(IsObjectAndBranch) \
115 V(IsStringAndBranch) \ 115 V(IsStringAndBranch) \
116 V(IsSmiAndBranch) \ 116 V(IsSmiAndBranch) \
117 V(IsNumberAndBranch) \
117 V(IsUndetectableAndBranch) \ 118 V(IsUndetectableAndBranch) \
118 V(Label) \ 119 V(Label) \
119 V(LazyBailout) \ 120 V(LazyBailout) \
120 V(LoadContextSlot) \ 121 V(LoadContextSlot) \
121 V(LoadExternalArrayPointer) \ 122 V(LoadExternalArrayPointer) \
122 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
123 V(LoadGlobalCell) \ 124 V(LoadGlobalCell) \
124 V(LoadGlobalGeneric) \ 125 V(LoadGlobalGeneric) \
125 V(LoadKeyed) \ 126 V(LoadKeyed) \
126 V(LoadKeyedGeneric) \ 127 V(LoadKeyedGeneric) \
127 V(LoadNamedField) \ 128 V(LoadNamedField) \
128 V(LoadNamedFieldPolymorphic) \ 129 V(LoadNamedFieldPolymorphic) \
129 V(LoadNamedGeneric) \ 130 V(LoadNamedGeneric) \
130 V(MapEnumLength) \ 131 V(MapEnumLength) \
131 V(MathAbs) \ 132 V(MathAbs) \
132 V(MathCos) \ 133 V(MathCos) \
133 V(MathExp) \ 134 V(MathExp) \
134 V(MathFloor) \ 135 V(MathFloor) \
135 V(MathFloorOfDiv) \ 136 V(MathFloorOfDiv) \
136 V(MathLog) \ 137 V(MathLog) \
137 V(MathMinMax) \ 138 V(MathMinMax) \
138 V(MathPowHalf) \ 139 V(MathPowHalf) \
139 V(MathRound) \ 140 V(MathRound) \
140 V(MathSin) \ 141 V(MathSin) \
141 V(MathSqrt) \ 142 V(MathSqrt) \
142 V(MathTan) \ 143 V(MathTan) \
143 V(ModI) \ 144 V(ModI) \
144 V(MulI) \ 145 V(MulI) \
146 V(NegateNoSSE2D) \
145 V(NumberTagD) \ 147 V(NumberTagD) \
146 V(NumberTagI) \ 148 V(NumberTagI) \
147 V(NumberTagU) \ 149 V(NumberTagU) \
148 V(NumberUntagD) \ 150 V(NumberUntagD) \
149 V(OsrEntry) \ 151 V(OsrEntry) \
150 V(OuterContext) \ 152 V(OuterContext) \
151 V(Parameter) \ 153 V(Parameter) \
152 V(Power) \ 154 V(Power) \
153 V(Random) \ 155 V(Random) \
154 V(PushArgument) \ 156 V(PushArgument) \
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 654
653 LOperand* left() { return inputs_[0]; } 655 LOperand* left() { return inputs_[0]; }
654 LOperand* right() { return inputs_[1]; } 656 LOperand* right() { return inputs_[1]; }
655 LOperand* temp() { return temps_[0]; } 657 LOperand* temp() { return temps_[0]; }
656 658
657 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") 659 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div")
658 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) 660 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv)
659 }; 661 };
660 662
661 663
664 class LNegateNoSSE2D: public LTemplateInstruction<1, 1, 0> {
665 public:
666 explicit LNegateNoSSE2D(LOperand* value) {
667 inputs_[0] = value;
668 }
669
670 LOperand* value() { return inputs_[0]; }
671
672 DECLARE_CONCRETE_INSTRUCTION(NegateNoSSE2D, "negate-no-sse2-d")
673 };
674
675
662 class LMulI: public LTemplateInstruction<1, 2, 1> { 676 class LMulI: public LTemplateInstruction<1, 2, 1> {
663 public: 677 public:
664 LMulI(LOperand* left, LOperand* right, LOperand* temp) { 678 LMulI(LOperand* left, LOperand* right, LOperand* temp) {
665 inputs_[0] = left; 679 inputs_[0] = left;
666 inputs_[1] = right; 680 inputs_[1] = right;
667 temps_[0] = temp; 681 temps_[0] = temp;
668 } 682 }
669 683
670 LOperand* left() { return inputs_[0]; } 684 LOperand* left() { return inputs_[0]; }
671 LOperand* right() { return inputs_[1]; } 685 LOperand* right() { return inputs_[1]; }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 890
877 LOperand* value() { return inputs_[0]; } 891 LOperand* value() { return inputs_[0]; }
878 LOperand* temp() { return temps_[0]; } 892 LOperand* temp() { return temps_[0]; }
879 893
880 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 894 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
881 895
882 virtual void PrintDataTo(StringStream* stream); 896 virtual void PrintDataTo(StringStream* stream);
883 }; 897 };
884 898
885 899
900 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
901 public:
902 explicit LIsNumberAndBranch(LOperand* value) {
903 inputs_[0] = value;
904 }
905
906 LOperand* value() { return inputs_[0]; }
907
908 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
909 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
910 };
911
912
886 class LIsStringAndBranch: public LControlInstruction<1, 1> { 913 class LIsStringAndBranch: public LControlInstruction<1, 1> {
887 public: 914 public:
888 LIsStringAndBranch(LOperand* value, LOperand* temp) { 915 LIsStringAndBranch(LOperand* value, LOperand* temp) {
889 inputs_[0] = value; 916 inputs_[0] = value;
890 temps_[0] = temp; 917 temps_[0] = temp;
891 } 918 }
892 919
893 LOperand* value() { return inputs_[0]; } 920 LOperand* value() { return inputs_[0]; }
894 LOperand* temp() { return temps_[0]; } 921 LOperand* temp() { return temps_[0]; }
895 922
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
2972 2999
2973 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3000 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2974 }; 3001 };
2975 3002
2976 #undef DECLARE_HYDROGEN_ACCESSOR 3003 #undef DECLARE_HYDROGEN_ACCESSOR
2977 #undef DECLARE_CONCRETE_INSTRUCTION 3004 #undef DECLARE_CONCRETE_INSTRUCTION
2978 3005
2979 } } // namespace v8::internal 3006 } } // namespace v8::internal
2980 3007
2981 #endif // V8_IA32_LITHIUM_IA32_H_ 3008 #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