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

Unified Diff: src/hydrogen-deoptimizing-mark.h

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen-dehoist.cc ('k') | src/hydrogen-deoptimizing-mark.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-deoptimizing-mark.h
diff --git a/src/hydrogen-infer-representation.h b/src/hydrogen-deoptimizing-mark.h
similarity index 75%
copy from src/hydrogen-infer-representation.h
copy to src/hydrogen-deoptimizing-mark.h
index 7c605696c4b956152bdd9dfc74c83e80569e3714..7d6e6e4bda3020cc9d3118060e0723054f17f9a6 100644
--- a/src/hydrogen-infer-representation.h
+++ b/src/hydrogen-deoptimizing-mark.h
@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef V8_HYDROGEN_INFER_REPRESENTATION_H_
-#define V8_HYDROGEN_INFER_REPRESENTATION_H_
+#ifndef V8_HYDROGEN_DEOPTIMIZING_MARK_H_
+#define V8_HYDROGEN_DEOPTIMIZING_MARK_H_
#include "hydrogen.h"
@@ -34,24 +34,23 @@ namespace v8 {
namespace internal {
-class HInferRepresentationPhase : public HPhase {
+// Mark all blocks that are dominated by an unconditional soft deoptimize to
+// prevent code motion across those blocks.
+class HPropagateDeoptimizingMarkPhase : public HPhase {
public:
- explicit HInferRepresentationPhase(HGraph* graph)
- : HPhase("H_Infer representations", graph),
- worklist_(8, zone()),
- in_worklist_(graph->GetMaximumValueID(), zone()) { }
+ explicit HPropagateDeoptimizingMarkPhase(HGraph* graph)
+ : HPhase("H_Propagate deoptimizing mark", graph) { }
void Run();
- void AddToWorklist(HValue* current);
private:
- ZoneList<HValue*> worklist_;
- BitVector in_worklist_;
+ void MarkAsDeoptimizing();
+ void NullifyUnreachableInstructions();
- DISALLOW_COPY_AND_ASSIGN(HInferRepresentationPhase);
+ DISALLOW_COPY_AND_ASSIGN(HPropagateDeoptimizingMarkPhase);
};
} } // namespace v8::internal
-#endif // V8_HYDROGEN_INFER_REPRESENTATION_H_
+#endif // V8_HYDROGEN_DEOPTIMIZING_MARK_H_
« no previous file with comments | « src/hydrogen-dehoist.cc ('k') | src/hydrogen-deoptimizing-mark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698