Reviewers: Rodolph Perfetta (ARM),

Description:
A64: Add suport for the --trap_on_deopt option.

Please review this at https://codereview.chromium.org/136113013/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64

Affected files (+4, -1 lines):
  M src/a64/lithium-codegen-a64.cc


Index: src/a64/lithium-codegen-a64.cc
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
index 65e897bcd76f53d850beb9668afeee6d3811f469..2fb24347528e65cdca6cd58b663f72a349f53c41 100644
--- a/src/a64/lithium-codegen-a64.cc
+++ b/src/a64/lithium-codegen-a64.cc
@@ -885,7 +885,10 @@ void LCodeGen::Deoptimize(LEnvironment* environment,
   }

   TODO_UNIMPLEMENTED("Add support for deopt_every_n_times flag.");
-  TODO_UNIMPLEMENTED("Add support for trap_on_deopt flag.");
+  if (FLAG_trap_on_deopt && info()->IsOptimizing()) {
+    __ Debug("trap_on_deopt", __LINE__, BREAK);
+  }
+

   // TODO(all): Currently this code directly jump to the second level deopt
   // table entry. This code need to be updated if we decide to use the


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