Skip to content

Commit 8402101

Browse files
committed
Added warmup_critical_function to several handlers
1 parent f606a73 commit 8402101

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pypy/interpreter/executioncontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def enter(self, frame):
7676
frame.f_backref = self.topframeref
7777
self.topframeref = jit.virtual_ref(frame)
7878

79-
#@warmup_critical_function
79+
@warmup_critical_function
8080
def leave(self, frame, w_exitvalue, got_exception):
8181
try:
8282
if self.profilefunc:

pypy/interpreter/pyopcode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class __extend__(pyframe.PyFrame):
5454

5555
### opcode dispatch ###
5656

57+
@warmup_critical_function
5758
def dispatch(self, pycode, next_instr, ec):
5859
from pypy.module.pypyjit.interp_jit import pypyjitdriver
5960
self = jit.hint(self, access_directly=True)
@@ -870,6 +871,7 @@ def BUILD_CLASS(self, oparg):
870871
e.get_w_value(self.space))
871872
self.pushvalue(w_newclass)
872873

874+
@warmup_critical_function
873875
def STORE_NAME(self, varindex):
874876
varname = self.getname_u(varindex)
875877
w_newvalue = self.popvalue()
@@ -910,6 +912,7 @@ def DELETE_ATTR(self, nameindex):
910912
w_obj = self.popvalue()
911913
self.space.delattr(w_obj, w_attributename)
912914

915+
@warmup_critical_function
913916
def STORE_GLOBAL(self, nameindex):
914917
#varname = self.getname_u(nameindex)
915918
#w_newvalue = self.popvalue()
@@ -1105,6 +1108,7 @@ def _revdb_jump_backward(self, jumpto):
11051108
from pypy.interpreter.reverse_debugging import jump_backward
11061109
jump_backward(self, jumpto)
11071110

1111+
@warmup_critical_function
11081112
def jump_absolute(self, jumpto, ec):
11091113
# this function is overridden by pypy.module.pypyjit.interp_jit
11101114
check_nonneg(jumpto)

0 commit comments

Comments
 (0)