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

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

Issue 146833016: A64: Support the --deopt_every_n_times flag. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/lithium-codegen-a64.cc
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
index 2fb24347528e65cdca6cd58b663f72a349f53c41..53019b8de874c1e1756ee8eedc69f25ddb7ecbe0 100644
--- a/src/a64/lithium-codegen-a64.cc
+++ b/src/a64/lithium-codegen-a64.cc
@@ -884,7 +884,14 @@ void LCodeGen::Deoptimize(LEnvironment* environment,
return;
}
- TODO_UNIMPLEMENTED("Add support for deopt_every_n_times flag.");
+ ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on A64.
+ if (FLAG_deopt_every_n_times == 1 &&
+ !info()->IsStub() &&
+ info()->opt_count() == id) {
+ __ Jump(entry, RelocInfo::RUNTIME_ENTRY);
+ return;
+ }
+
if (FLAG_trap_on_deopt && info()->IsOptimizing()) {
__ Debug("trap_on_deopt", __LINE__, BREAK);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698