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

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

Issue 13649003: Fix worst-case behavior of MergeRemovableSimulates(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: small changes. Created 7 years, 8 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 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 void AddPushedValue(HValue* value) { 1823 void AddPushedValue(HValue* value) {
1824 AddValue(kNoIndex, value); 1824 AddValue(kNoIndex, value);
1825 } 1825 }
1826 virtual int OperandCount() { return values_.length(); } 1826 virtual int OperandCount() { return values_.length(); }
1827 virtual HValue* OperandAt(int index) const { return values_[index]; } 1827 virtual HValue* OperandAt(int index) const { return values_[index]; }
1828 1828
1829 virtual Representation RequiredInputRepresentation(int index) { 1829 virtual Representation RequiredInputRepresentation(int index) {
1830 return Representation::None(); 1830 return Representation::None();
1831 } 1831 }
1832 1832
1833 void MergeInto(HSimulate* other); 1833 void MergeWith(ZoneList<HSimulate*>* list);
1834 bool is_candidate_for_removal() { return removable_ == REMOVABLE_SIMULATE; } 1834 bool is_candidate_for_removal() { return removable_ == REMOVABLE_SIMULATE; }
1835 1835
1836 DECLARE_CONCRETE_INSTRUCTION(Simulate) 1836 DECLARE_CONCRETE_INSTRUCTION(Simulate)
1837 1837
1838 #ifdef DEBUG 1838 #ifdef DEBUG
1839 virtual void Verify(); 1839 virtual void Verify();
1840 #endif 1840 #endif
1841 1841
1842 protected: 1842 protected:
1843 virtual void InternalSetOperandAt(int index, HValue* value) { 1843 virtual void InternalSetOperandAt(int index, HValue* value) {
(...skipping 4605 matching lines...) Expand 10 before | Expand all | Expand 10 after
6449 virtual bool IsDeletable() const { return true; } 6449 virtual bool IsDeletable() const { return true; }
6450 }; 6450 };
6451 6451
6452 6452
6453 #undef DECLARE_INSTRUCTION 6453 #undef DECLARE_INSTRUCTION
6454 #undef DECLARE_CONCRETE_INSTRUCTION 6454 #undef DECLARE_CONCRETE_INSTRUCTION
6455 6455
6456 } } // namespace v8::internal 6456 } } // namespace v8::internal
6457 6457
6458 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6458 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698