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

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: Created 7 years, 6 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) \
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 878
878 LOperand* value() { return inputs_[0]; } 879 LOperand* value() { return inputs_[0]; }
879 LOperand* temp() { return temps_[0]; } 880 LOperand* temp() { return temps_[0]; }
880 881
881 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") 882 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
882 883
883 virtual void PrintDataTo(StringStream* stream); 884 virtual void PrintDataTo(StringStream* stream);
884 }; 885 };
885 886
886 887
888 class LIsNumberAndBranch: public LControlInstruction<1, 0> {
889 public:
890 explicit LIsNumberAndBranch(LOperand* value) {
891 inputs_[0] = value;
892 }
893
894 LOperand* value() { return inputs_[0]; }
895
896 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch")
897 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch)
898 };
899
900
887 class LIsStringAndBranch: public LControlInstruction<1, 1> { 901 class LIsStringAndBranch: public LControlInstruction<1, 1> {
888 public: 902 public:
889 LIsStringAndBranch(LOperand* value, LOperand* temp) { 903 LIsStringAndBranch(LOperand* value, LOperand* temp) {
890 inputs_[0] = value; 904 inputs_[0] = value;
891 temps_[0] = temp; 905 temps_[0] = temp;
892 } 906 }
893 907
894 LOperand* value() { return inputs_[0]; } 908 LOperand* value() { return inputs_[0]; }
895 LOperand* temp() { return temps_[0]; } 909 LOperand* temp() { return temps_[0]; }
896 910
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2998 3012
2999 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3013 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3000 }; 3014 };
3001 3015
3002 #undef DECLARE_HYDROGEN_ACCESSOR 3016 #undef DECLARE_HYDROGEN_ACCESSOR
3003 #undef DECLARE_CONCRETE_INSTRUCTION 3017 #undef DECLARE_CONCRETE_INSTRUCTION
3004 3018
3005 } } // namespace v8::internal 3019 } } // namespace v8::internal
3006 3020
3007 #endif // V8_IA32_LITHIUM_IA32_H_ 3021 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698