changeset 15593:24bbd2efea12

pt-jit.cc (tree_jit::enabled): Do not jit if Vdebug_on_interrupt or Vdebug_on_error
author Max Brister <max@2bass.com>
date Sun, 04 Nov 2012 16:04:30 -0700
parents 6fc163b59746
children a7b22144318a
files libinterp/interp-core/pt-jit.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interp-core/pt-jit.cc	Sun Nov 04 15:38:48 2012 -0700
+++ b/libinterp/interp-core/pt-jit.cc	Sun Nov 04 16:04:30 2012 -0700
@@ -1906,7 +1906,8 @@
   // Ideally, we should only disable JIT if there is a breakpoint in the code we
   // are about to run. However, we can't figure this out in O(1) time, so we
   // conservatively check for the existence of any breakpoints.
-  return Venable_jit_compiler && ! bp_table::have_breakpoints ();
+  return Venable_jit_compiler && ! bp_table::have_breakpoints ()
+    && ! Vdebug_on_interrupt && ! Vdebug_on_error;
 }
 
 size_t