Ticket #1659: get_results_clean.patch
File get_results_clean.patch, 4.4 KB (added by NotFound, 12 years ago) |
---|
-
src/ops/core.ops
542 542 PARROT_ERRORS_RESULT_COUNT_FLAG); 543 543 544 544 argc = VTABLE_elements(interp, signature); 545 Parrot_pcc_set_signature(interp, CURRENT_CONTEXT(interp), PMCNULL); 545 546 goto OFFSET(argc + 2); 546 547 } 547 548 -
src/ops/core_ops.c
14516 14516 Parrot_pcc_fill_params_from_op(interp, call_object, signature, raw_params, 14517 14517 PARROT_ERRORS_RESULT_COUNT_FLAG); 14518 14518 14519 argc = VTABLE_elements(interp, signature);return (opcode_t *)cur_opcode + argc + 2; 14519 argc = VTABLE_elements(interp, signature); 14520 Parrot_pcc_set_signature(interp, CURRENT_CONTEXT(interp), PMCNULL);return (opcode_t *)cur_opcode + argc + 2; 14520 14521 } 14521 14522 14522 14523 opcode_t * … … 14797 14798 opcode_t *dest; 14798 14799 opcode_t * const ret =cur_opcode + 2; 14799 14800 PMC * const resume = pmc_new(interp, enum_class_Continuation); 14800 PMC * const exception = Parrot_ex_build_exception(interp, EXCEPT_exit, 14801 PMC * const exception = Parrot_ex_build_exception(interp, EXCEPT_exit, 14801 14802 CONTROL_EXIT, NULL); 14802 14803 14803 14804 VTABLE_set_pointer(interp, resume, ret); … … 14815 14816 opcode_t *dest; 14816 14817 opcode_t * const ret =cur_opcode + 2; 14817 14818 PMC * const resume = pmc_new(interp, enum_class_Continuation); 14818 PMC * const exception = Parrot_ex_build_exception(interp, EXCEPT_exit, 14819 PMC * const exception = Parrot_ex_build_exception(interp, EXCEPT_exit, 14819 14820 CONTROL_EXIT, NULL); 14820 14821 14821 14822 VTABLE_set_pointer(interp, resume, ret); -
t/pmc/eval.t
66 66 concat S5, "returncc\n" 67 67 compreg P1, "PASM" 68 68 set_args "0", S5 69 invokecc P1 69 70 get_results "0", P6 70 invokecc P171 71 get_global P2, "_foo" 72 72 invokecc P2 73 73 print "back\n" -
t/pmc/objects.t
1603 1603 new $P5, ['String'] # set attribute values 1604 1604 set $P5, "i" # attribute slots have reference semantics 1605 1605 set_args "0,0", $P5, "i" 1606 callmethodcc $P13, "Foo54__set" 1606 1607 get_results "" 1607 callmethodcc $P13, "Foo54__set"1608 1608 1609 1609 new $P5, ['String'] 1610 1610 set $P5, "j" 1611 1611 set_args "0,0", $P5, "j" 1612 callmethodcc $P13,"Foo54__set" 1612 1613 get_results "" 1613 callmethodcc $P13,"Foo54__set"1614 1614 1615 1615 new $P5, ['String'] 1616 1616 set $P5, "k" 1617 1617 set_args "0,0", $P5, "k" 1618 callmethodcc $P13,"Bar54__set" 1618 1619 get_results "" 1619 callmethodcc $P13,"Bar54__set"1620 1620 1621 1621 new $P5, ['String'] 1622 1622 set $P5, "l" 1623 1623 set_args "0,0", $P5, "l" 1624 callmethodcc $P13,"Bar54__set" 1624 1625 get_results "" 1625 callmethodcc $P13,"Bar54__set"1626 1626 1627 1627 # now retrieve attributes 1628 1628 set_args "0", "i" 1629 callmethodcc $P13,"Foo54__get" 1629 1630 get_results "0", $P5 1630 callmethodcc $P13,"Foo54__get"1631 1631 is( $P5, "i", 'got attrib i from Bar54->Foo54__get' ) 1632 1632 1633 1633 set_args "0", "j" 1634 callmethodcc $P13,"Foo54__get" 1634 1635 get_results "0", $P5 1635 callmethodcc $P13,"Foo54__get"1636 1636 is( $P5, "j", 'got attrib j from Bar54->Foo54__get' ) 1637 1637 1638 1638 set_args "0", "k" 1639 callmethodcc $P13,"Bar54__get" 1639 1640 get_results "0", $P5 1640 callmethodcc $P13,"Bar54__get"1641 1641 is( $P5, "k", 'got attrib k from Bar54->Bar54__get' ) 1642 1642 1643 1643 set_args "0", "l" 1644 callmethodcc $P13,"Bar54__get" 1644 1645 get_results "0", $P5 1645 callmethodcc $P13,"Bar54__get"1646 1646 is( $P5, "l", 'got attrib l from Bar54->Bar54__get' ) 1647 1647 .end 1648 1648 -
t/op/calling.t
1852 1852 pasm_output_is( <<'CODE', <<'OUTPUT', "named - 5 slurpy array -> named" ); 1853 1853 .pcc_sub main: 1854 1854 set_args "0, 0, 0, 0x200, 0, 0x200, 0", 10, 20, 30, 'a', 40, 'b', 50 1855 get_results ""1856 1855 find_name P1, "foo" 1857 1856 invokecc P1 1857 get_results "" 1858 1858 print "ok\n" 1859 1859 end 1860 1860 .pcc_sub foo: