コード例 #1
0
ファイル: test_assembler.py プロジェクト: overminder/YASI
def test_load_dump():
    w_expr, = read_string(compiled_source)
    w_func0 = load_bytecode_function(w_expr, None)
    w_expr0 = dump_bytecode_function(w_func0)
    assert w_expr.to_string() == w_expr0.to_string()
コード例 #2
0
def test_load_dump():
    w_expr, = read_string(compiled_source)
    w_func0 = load_bytecode_function(w_expr, None)
    w_expr0 = dump_bytecode_function(w_func0)
    assert w_expr.to_string() == w_expr0.to_string()
コード例 #3
0
ファイル: prelude.py プロジェクト: overminder/YASI
 def call(self, args_w):
     assert len(args_w) == 1
     w_arg, = args_w
     assert isinstance(w_arg, W_BytecodeClosure)
     assert not w_arg.upvals_w
     return dump_bytecode_function(w_arg.w_func)
コード例 #4
0
ファイル: prelude.py プロジェクト: overminder/YASI
 def call(self, args_w):
     assert len(args_w) == 1
     w_arg, = args_w
     assert isinstance(w_arg, W_BytecodeClosure)
     assert not w_arg.upvals_w
     return dump_bytecode_function(w_arg.w_func)