Temporarily skip escape analysis when compiling for OSR.

R=jkummerow@chromium.org
TEST=mjsunit/compiler/escape-analysis --stress-compaction

Review URL: https://codereview.chromium.org/23480028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16499 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1749bb62
...@@ -306,4 +306,13 @@ void HEscapeAnalysisPhase::PerformScalarReplacement() { ...@@ -306,4 +306,13 @@ void HEscapeAnalysisPhase::PerformScalarReplacement() {
} }
void HEscapeAnalysisPhase::Run() {
// TODO(mstarzinger): We disable escape analysis with OSR for now, because
// spill slots might be uninitialized. Needs investigation.
if (graph()->has_osr()) return;
CollectCapturedValues();
PerformScalarReplacement();
}
} } // namespace v8::internal } } // namespace v8::internal
...@@ -45,10 +45,7 @@ class HEscapeAnalysisPhase : public HPhase { ...@@ -45,10 +45,7 @@ class HEscapeAnalysisPhase : public HPhase {
cumulative_values_(0), cumulative_values_(0),
block_states_(graph->blocks()->length(), zone()) { } block_states_(graph->blocks()->length(), zone()) { }
void Run() { void Run();
CollectCapturedValues();
PerformScalarReplacement();
}
private: private:
void CollectCapturedValues(); void CollectCapturedValues();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment