Ejemplo n.º 1
0
 def compile_bridge(self, faildescr, inputargs, operations, original_loop_token, log=True):
     c = llimpl.compile_start()
     clt = original_loop_token.compiled_loop_token
     clt.loop_and_bridges.append(c)
     clt.compiling_a_bridge()
     self._compile_loop_or_bridge(c, inputargs, operations, clt)
     old, oldindex = faildescr._compiled_fail
     llimpl.compile_redirect_fail(old, oldindex, c)
Ejemplo n.º 2
0
 def compile_loop(self, inputargs, operations, loopdescr):
     """In a real assembler backend, this should assemble the given
     list of operations.  Here we just generate a similar CompiledLoop
     instance.  The code here is RPython, whereas the code in llimpl
     is not.
     """
     c = llimpl.compile_start()
     loopdescr._llgraph_compiled_version = c
     self._compile_loop_or_bridge(c, inputargs, operations)
Ejemplo n.º 3
0
 def compile_loop(self, inputargs, operations, loopdescr):
     """In a real assembler backend, this should assemble the given
     list of operations.  Here we just generate a similar CompiledLoop
     instance.  The code here is RPython, whereas the code in llimpl
     is not.
     """
     c = llimpl.compile_start()
     loopdescr._llgraph_compiled_version = c
     self._compile_loop_or_bridge(c, inputargs, operations)
Ejemplo n.º 4
0
Archivo: runner.py Proyecto: ieure/pypy
 def compile_loop(self, inputargs, operations, looptoken, log=True, name=''):
     """In a real assembler backend, this should assemble the given
     list of operations.  Here we just generate a similar CompiledLoop
     instance.  The code here is RPython, whereas the code in llimpl
     is not.
     """
     c = llimpl.compile_start()
     clt = model.CompiledLoopToken(self, looptoken.number)
     clt.loop_and_bridges = [c]
     clt.compiled_version = c
     looptoken.compiled_loop_token = clt
     self._compile_loop_or_bridge(c, inputargs, operations)
Ejemplo n.º 5
0
 def compile_bridge(self,
                    faildescr,
                    inputargs,
                    operations,
                    original_loop_token,
                    log=True):
     c = llimpl.compile_start()
     clt = original_loop_token.compiled_loop_token
     clt.loop_and_bridges.append(c)
     clt.compiling_a_bridge()
     self._compile_loop_or_bridge(c, inputargs, operations, clt)
     old, oldindex = faildescr._compiled_fail
     llimpl.compile_redirect_fail(old, oldindex, c)
Ejemplo n.º 6
0
 def compile_loop(self,
                  inputargs,
                  operations,
                  jitcell_token,
                  log=True,
                  name=''):
     """In a real assembler backend, this should assemble the given
     list of operations.  Here we just generate a similar CompiledLoop
     instance.  The code here is RPython, whereas the code in llimpl
     is not.
     """
     c = llimpl.compile_start()
     clt = model.CompiledLoopToken(self, jitcell_token.number)
     clt.loop_and_bridges = [c]
     clt.compiled_version = c
     jitcell_token.compiled_loop_token = clt
     self._compile_loop_or_bridge(c, inputargs, operations, clt)
Ejemplo n.º 7
0
 def compile_bridge(self, faildescr, inputargs, operations):
     c = llimpl.compile_start()
     self._compile_loop_or_bridge(c, inputargs, operations)
     old, oldindex = faildescr._compiled_fail
     llimpl.compile_redirect_fail(old, oldindex, c)
Ejemplo n.º 8
0
 def compile_bridge(self, faildescr, inputargs, operations):
     c = llimpl.compile_start()
     self._compile_loop_or_bridge(c, inputargs, operations)
     old, oldindex = faildescr._compiled_fail
     llimpl.compile_redirect_fail(old, oldindex, c)