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

Side by Side Diff: src/hydrogen-instructions.h

Issue 7027029: Revert r8140. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 V(OuterContext) \ 139 V(OuterContext) \
140 V(Parameter) \ 140 V(Parameter) \
141 V(Power) \ 141 V(Power) \
142 V(PushArgument) \ 142 V(PushArgument) \
143 V(RegExpLiteral) \ 143 V(RegExpLiteral) \
144 V(Return) \ 144 V(Return) \
145 V(Sar) \ 145 V(Sar) \
146 V(Shl) \ 146 V(Shl) \
147 V(Shr) \ 147 V(Shr) \
148 V(Simulate) \ 148 V(Simulate) \
149 V(SoftDeoptimize) \
150 V(StackCheck) \ 149 V(StackCheck) \
151 V(StoreContextSlot) \ 150 V(StoreContextSlot) \
152 V(StoreGlobalCell) \ 151 V(StoreGlobalCell) \
153 V(StoreGlobalGeneric) \ 152 V(StoreGlobalGeneric) \
154 V(StoreKeyedFastElement) \ 153 V(StoreKeyedFastElement) \
155 V(StoreKeyedGeneric) \ 154 V(StoreKeyedGeneric) \
156 V(StoreKeyedSpecializedArrayElement) \ 155 V(StoreKeyedSpecializedArrayElement) \
157 V(StoreNamedField) \ 156 V(StoreNamedField) \
158 V(StoreNamedGeneric) \ 157 V(StoreNamedGeneric) \
159 V(StringAdd) \ 158 V(StringAdd) \
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 class HBlockEntry: public HTemplateInstruction<0> { 840 class HBlockEntry: public HTemplateInstruction<0> {
842 public: 841 public:
843 virtual Representation RequiredInputRepresentation(int index) const { 842 virtual Representation RequiredInputRepresentation(int index) const {
844 return Representation::None(); 843 return Representation::None();
845 } 844 }
846 845
847 DECLARE_CONCRETE_INSTRUCTION(BlockEntry) 846 DECLARE_CONCRETE_INSTRUCTION(BlockEntry)
848 }; 847 };
849 848
850 849
851 // We insert soft-deoptimize when we hit code with unknown typefeedback,
852 // so that we get a chance of re-optimizing with useful typefeedback.
853 // HSoftDeoptimize does not end a basic block as opposed to HDeoptimize.
854 class HSoftDeoptimize: public HTemplateInstruction<0> {
855 public:
856 virtual Representation RequiredInputRepresentation(int index) const {
857 return Representation::None();
858 }
859
860 DECLARE_CONCRETE_INSTRUCTION(SoftDeoptimize)
861 };
862
863
864 class HDeoptimize: public HControlInstruction { 850 class HDeoptimize: public HControlInstruction {
865 public: 851 public:
866 explicit HDeoptimize(int environment_length) 852 explicit HDeoptimize(int environment_length)
867 : HControlInstruction(NULL, NULL), 853 : HControlInstruction(NULL, NULL),
868 values_(environment_length) { } 854 values_(environment_length) { }
869 855
870 virtual Representation RequiredInputRepresentation(int index) const { 856 virtual Representation RequiredInputRepresentation(int index) const {
871 return Representation::None(); 857 return Representation::None();
872 } 858 }
873 859
874 virtual int OperandCount() { return values_.length(); } 860 virtual int OperandCount() { return values_.length(); }
875 virtual HValue* OperandAt(int index) { return values_[index]; } 861 virtual HValue* OperandAt(int index) { return values_[index]; }
876 virtual void PrintDataTo(StringStream* stream);
877 862
878 void AddEnvironmentValue(HValue* value) { 863 void AddEnvironmentValue(HValue* value) {
879 values_.Add(NULL); 864 values_.Add(NULL);
880 SetOperandAt(values_.length() - 1, value); 865 SetOperandAt(values_.length() - 1, value);
881 } 866 }
882 867
883 DECLARE_CONCRETE_INSTRUCTION(Deoptimize) 868 DECLARE_CONCRETE_INSTRUCTION(Deoptimize)
884 869
885 enum UseEnvironment { 870 enum UseEnvironment {
886 kNoUses, 871 kNoUses,
(...skipping 3160 matching lines...) Expand 10 before | Expand all | Expand 10 after
4047 4032
4048 DECLARE_CONCRETE_INSTRUCTION(In) 4033 DECLARE_CONCRETE_INSTRUCTION(In)
4049 }; 4034 };
4050 4035
4051 #undef DECLARE_INSTRUCTION 4036 #undef DECLARE_INSTRUCTION
4052 #undef DECLARE_CONCRETE_INSTRUCTION 4037 #undef DECLARE_CONCRETE_INSTRUCTION
4053 4038
4054 } } // namespace v8::internal 4039 } } // namespace v8::internal
4055 4040
4056 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4041 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698