Commits

Antonio Cuni committed 9413087

rename 'fast' mode to 'core-only'

Comments (0)

Files changed (3)

pypy/jit/metainterp/pyjitpl.py

         return ConstInt(result)
 
     def perform_call_maybe(self, jitcode, argboxes):
-        core_only_mode = (self.metainterp.jitdriver_sd.warmstate.jitmode == 'fast')
+        core_only_mode = (self.metainterp.jitdriver_sd.warmstate.jitmode == 'core-only')
         # in core_only_mode, don't inline calls from core to non-core graphs
         if core_only_mode and self.jitcode.is_core and not jitcode.is_core:
             funcbox = ConstInt(jitcode.get_fnaddr_as_int())

pypy/jit/metainterp/test/test_ajit.py

                 res = a(x) + b(x, res) + c(x, -x, -x) # at the end, it's like doing x+res :-)
                 y -= 1
             return res
-        res = self.meta_interp(f, [6, 7], policy=MyPolicy(), jitmode='fast') # fast == trace only core graphs
+        res = self.meta_interp(f, [6, 7], policy=MyPolicy(), jitmode='core-only')
         assert res == 42
         self.check_trace_count(1)
         # this is suboptimal because we get a call_may_force instead of a
                 y -= 1
                 res += f(x)
             return res
-        res = self.meta_interp(f, [5, 7], policy=MyPolicy(), jitmode='fast') # fast == trace only core graphs
+        res = self.meta_interp(f, [5, 7], policy=MyPolicy(), jitmode='core-only')
         assert res == 43
         self.check_trace_count(1)
         self.check_resops({'jump': 1, 'int_gt': 2, 'guard_true': 2, 'int_sub': 2,
                 res = a(res, x)
                 y -= 1
             return res
-        res = self.meta_interp(f, [6, 7], policy=MyPolicy(), jitmode='fast') # fast == trace only core graphs
+        res = self.meta_interp(f, [6, 7], policy=MyPolicy(), jitmode='core-only')
         assert res == 42
         self.check_trace_count(1)
         self.check_resops({'jump': 1, 'int_gt': 2, 'guard_true': 2, 'int_sub': 2,
     'retrace_limit': 'how many times we can try retracing before giving up',
     'max_retrace_guards': 'number of extra guards a retrace can cause',
     'max_unroll_loops': 'number of extra unrollings a loop can cause',
-    'jitmode': '"full" (default) or "fast"',
+    'jitmode': '"full" (default) or "core-only"',
     'enable_opts': 'optimizations to enable or all, INTERNAL USE ONLY'
     }