Revision: 18876
Author:   [email protected]
Date:     Tue Jan 28 11:15:21 2014 UTC
Log:      A64: Support the --deopt_every_n_times flag.

[email protected]

Review URL: https://codereview.chromium.org/146833016
http://code.google.com/p/v8/source/detail?r=18876

Modified:
 /branches/experimental/a64/src/a64/lithium-codegen-a64.cc

=======================================
--- /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Tue Jan 28 09:53:22 2014 UTC +++ /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Tue Jan 28 11:15:21 2014 UTC
@@ -884,7 +884,14 @@
     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);
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to