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

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

Issue 7012010: Don't use environment values at certain deoptimize-instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 7 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') | no next file » | 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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 virtual int OperandCount() { return values_.length(); } 855 virtual int OperandCount() { return values_.length(); }
856 virtual HValue* OperandAt(int index) { return values_[index]; } 856 virtual HValue* OperandAt(int index) { return values_[index]; }
857 857
858 void AddEnvironmentValue(HValue* value) { 858 void AddEnvironmentValue(HValue* value) {
859 values_.Add(NULL); 859 values_.Add(NULL);
860 SetOperandAt(values_.length() - 1, value); 860 SetOperandAt(values_.length() - 1, value);
861 } 861 }
862 862
863 DECLARE_CONCRETE_INSTRUCTION(Deoptimize) 863 DECLARE_CONCRETE_INSTRUCTION(Deoptimize)
864 864
865 enum UseEnvironment {
866 kNoUses,
867 kUseAll
868 };
869
865 protected: 870 protected:
866 virtual void InternalSetOperandAt(int index, HValue* value) { 871 virtual void InternalSetOperandAt(int index, HValue* value) {
867 values_[index] = value; 872 values_[index] = value;
868 } 873 }
869 874
870 private: 875 private:
871 ZoneList<HValue*> values_; 876 ZoneList<HValue*> values_;
872 }; 877 };
873 878
874 879
(...skipping 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after
3890 3895
3891 DECLARE_CONCRETE_INSTRUCTION(In) 3896 DECLARE_CONCRETE_INSTRUCTION(In)
3892 }; 3897 };
3893 3898
3894 #undef DECLARE_INSTRUCTION 3899 #undef DECLARE_INSTRUCTION
3895 #undef DECLARE_CONCRETE_INSTRUCTION 3900 #undef DECLARE_CONCRETE_INSTRUCTION
3896 3901
3897 } } // namespace v8::internal 3902 } } // namespace v8::internal
3898 3903
3899 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3904 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698