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
This commit is contained in:
mstarzinger@chromium.org 2013-09-03 10:58:07 +00:00
parent 1749bb620f
commit 037ef1132f
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -45,10 +45,7 @@ class HEscapeAnalysisPhase : public HPhase {
cumulative_values_(0),
block_states_(graph->blocks()->length(), zone()) { }
void Run() {
CollectCapturedValues();
PerformScalarReplacement();
}
void Run();
private:
void CollectCapturedValues();