comparison libinterp/interp-core/pt-jit.cc @ 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 6e780fb15c14
comparison
equal deleted inserted replaced
15592:6fc163b59746 15593:24bbd2efea12
1904 tree_jit::enabled (void) 1904 tree_jit::enabled (void)
1905 { 1905 {
1906 // Ideally, we should only disable JIT if there is a breakpoint in the code we 1906 // Ideally, we should only disable JIT if there is a breakpoint in the code we
1907 // are about to run. However, we can't figure this out in O(1) time, so we 1907 // are about to run. However, we can't figure this out in O(1) time, so we
1908 // conservatively check for the existence of any breakpoints. 1908 // conservatively check for the existence of any breakpoints.
1909 return Venable_jit_compiler && ! bp_table::have_breakpoints (); 1909 return Venable_jit_compiler && ! bp_table::have_breakpoints ()
1910 && ! Vdebug_on_interrupt && ! Vdebug_on_error;
1910 } 1911 }
1911 1912
1912 size_t 1913 size_t
1913 tree_jit::trip_count (const octave_value& bounds) const 1914 tree_jit::trip_count (const octave_value& bounds) const
1914 { 1915 {