Debian Codegraph @

rpython/jit/tl/targettiny1.py

raw symbols SCIP
1 from __future__ import print_function
2
3 from rpython.annotator.policy import AnnotatorPolicy
4 from rpython.jit.tl import tiny1
5 from rpython.jit.backend.hlinfo import highleveljitinfo
6
7
8 def entry_point(args):
9 """Main entry point of the stand-alone executable:
10 takes a list of strings and returns the exit code.
11 """
12 # store args[0] in a place where the JIT log can find it (used by
13 # viewcode.py to know the executable whose symbols it should display)
14 highleveljitinfo.sys_executable = args[0]
15 if len(args) < 4:
16 print("Usage: %s bytecode x y" % (args[0],))
17 return 2
18 bytecode = args[1]
19 x = int(args[2])
20 y = int(args[3])
21 res = tiny1.ll_plus_minus(bytecode, x, y)
22 print(res)
23 return 0
24
25 def target(driver, args):
26 return entry_point, None