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

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

Issue 6350011: Port to ARM and x64: Record the lazy deoptimization environmnent only at LLa... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/lithium-codegen-x64.cc
===================================================================
--- src/x64/lithium-codegen-x64.cc (revision 6441)
+++ src/x64/lithium-codegen-x64.cc (working copy)
@@ -525,16 +525,20 @@
// 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* deoptimization_environment;
- if (instr->HasDeoptimizationEnvironment()) {
- deoptimization_environment = instr->deoptimization_environment();
+ 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();
} else {
- deoptimization_environment = instr->environment();
+ lazy_deoptimization_environment = instr->environment();
}
- RegisterEnvironmentForDeoptimization(deoptimization_environment);
+ RegisterEnvironmentForDeoptimization(lazy_deoptimization_environment);
RecordSafepoint(instr->pointer_map(),
- deoptimization_environment->deoptimization_index());
+ lazy_deoptimization_environment->deoptimization_index());
}
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698