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

Unified Diff: src/ia32/lithium-codegen-ia32.cc

Issue 6383010: Merge r6479 into trunk (Revert r6543 and r6441).... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/lithium-codegen-ia32.cc
===================================================================
--- src/ia32/lithium-codegen-ia32.cc (revision 6479)
+++ src/ia32/lithium-codegen-ia32.cc (working copy)
@@ -414,20 +414,16 @@
// Create the environment to bailout to. If the call has side effects
// execution has to continue after the call otherwise execution can continue
// from a previous bailout point repeating the call.
- LEnvironment* lazy_deoptimization_environment;
- ASSERT(!instr->IsControl());
- ASSERT(instructions_->at(current_instruction_ + 1)->IsGap());
- LInstruction* next_instr = instructions_->at(current_instruction_ + 2);
- if (next_instr->IsLazyBailout()) {
- ASSERT(next_instr->HasEnvironment());
- lazy_deoptimization_environment = next_instr->environment();
+ LEnvironment* deoptimization_environment;
+ if (instr->HasDeoptimizationEnvironment()) {
+ deoptimization_environment = instr->deoptimization_environment();
} else {
- lazy_deoptimization_environment = instr->environment();
+ deoptimization_environment = instr->environment();
}
- RegisterEnvironmentForDeoptimization(lazy_deoptimization_environment);
+ RegisterEnvironmentForDeoptimization(deoptimization_environment);
RecordSafepoint(instr->pointer_map(),
- lazy_deoptimization_environment->deoptimization_index());
+ deoptimization_environment->deoptimization_index());
}
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698