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

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

Issue 23005027: Factor out HSimulate::ReplayEnvironment. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed commment by Ben Titzer. Created 7 years, 3 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/arm/lithium-arm.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 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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 } 1669 }
1670 1670
1671 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; } 1671 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; }
1672 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1672 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1673 return Representation::None(); 1673 return Representation::None();
1674 } 1674 }
1675 1675
1676 void MergeWith(ZoneList<HSimulate*>* list); 1676 void MergeWith(ZoneList<HSimulate*>* list);
1677 bool is_candidate_for_removal() { return removable_ == REMOVABLE_SIMULATE; } 1677 bool is_candidate_for_removal() { return removable_ == REMOVABLE_SIMULATE; }
1678 1678
1679 // Replay effects of this instruction on the given environment.
1680 void ReplayEnvironment(HEnvironment* env);
1681
1679 DECLARE_CONCRETE_INSTRUCTION(Simulate) 1682 DECLARE_CONCRETE_INSTRUCTION(Simulate)
1680 1683
1681 #ifdef DEBUG 1684 #ifdef DEBUG
1682 virtual void Verify() V8_OVERRIDE; 1685 virtual void Verify() V8_OVERRIDE;
1683 void set_closure(Handle<JSFunction> closure) { closure_ = closure; } 1686 void set_closure(Handle<JSFunction> closure) { closure_ = closure; }
1684 Handle<JSFunction> closure() const { return closure_; } 1687 Handle<JSFunction> closure() const { return closure_; }
1685 #endif 1688 #endif
1686 1689
1687 protected: 1690 protected:
1688 virtual void InternalSetOperandAt(int index, HValue* value) V8_OVERRIDE { 1691 virtual void InternalSetOperandAt(int index, HValue* value) V8_OVERRIDE {
(...skipping 5110 matching lines...) Expand 10 before | Expand all | Expand 10 after
6799 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 6802 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
6800 }; 6803 };
6801 6804
6802 6805
6803 #undef DECLARE_INSTRUCTION 6806 #undef DECLARE_INSTRUCTION
6804 #undef DECLARE_CONCRETE_INSTRUCTION 6807 #undef DECLARE_CONCRETE_INSTRUCTION
6805 6808
6806 } } // namespace v8::internal 6809 } } // namespace v8::internal
6807 6810
6808 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6811 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698