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

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

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