cvsuser     04/11/19 05:45:33

  Modified:    t/op     calling.t gc.t interp.t
               t/pmc    coroutine.t delegate.t eval.t freeze.t mmd.t nci.t
                        object-meths.t objects.t pmc.t sub.t threads.t
                        timer.t
               t/src    extend.t
  Log:
  use returncc in a bunch of tests
  
  * s/return P1/returncc/
  * removed sub tests that tested frame chunk switching
  
  Revision  Changes    Path
  1.9       +3 -7      parrot/t/op/calling.t
  
  Index: calling.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/op/calling.t,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- calling.t 1 Oct 2004 21:16:49 -0000       1.8
  +++ calling.t 19 Nov 2004 13:45:30 -0000      1.9
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: calling.t,v 1.8 2004/10/01 21:16:49 jrieks Exp $
  +# $Id: calling.t,v 1.9 2004/11/19 13:45:30 leo Exp $
   
   =head1 NAME
   
  @@ -61,9 +61,7 @@
       set I2,0
       set I3,11
       set I4,0
  -    savetop
       invokecc
  -    restoretop
       end
   _foo:
       foldup P17
  @@ -78,7 +76,7 @@
       set I2,0
       set I3,0
       set I4,0
  -    invoke P1
  +    returncc
   
   CODE
   Foobar!
  @@ -125,9 +123,7 @@
       set I1,4
       set I2,0
       set I3,11
  -    savetop
       invokecc
  -    restoretop
       end
   _foo:
       foldup P17, 2
  @@ -142,7 +138,7 @@
       set I2,0
       set I3,0
       set I4,0
  -    invoke P1
  +    returncc
   
   CODE
   Foobar!
  
  
  
  1.24      +7 -15     parrot/t/op/gc.t
  
  Index: gc.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/op/gc.t,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- gc.t      17 Nov 2004 09:21:30 -0000      1.23
  +++ gc.t      19 Nov 2004 13:45:30 -0000      1.24
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: gc.t,v 1.23 2004/11/17 09:21:30 leo Exp $
  +# $Id: gc.t,v 1.24 2004/11/19 13:45:30 leo Exp $
   
   =head1 NAME
   
  @@ -146,9 +146,7 @@
       set I17, 0
   loop:
       sweep 1
  -    savetop
       invokecc
  -    restoretop
       inc I17
       lt I17, I16, loop
       print "ok\n"
  @@ -159,7 +157,7 @@
       set I5, P16[10]
       gt I5, 10, err
       lt I5, 0, err
  -    invoke P1
  +    returncc
   err:
       print "singleton destroyed .Random = ."
       new P16, .Random
  @@ -191,24 +189,22 @@
       new P6, .PerlString
       set P6, "hi"
       newsub P0, .Sub, _do_inc
  -    savetop
       invokecc
  -    restoretop
       sweep 1
       set P1, P16
  -    invoke P1
  +    returncc
   
   _do_inc:
       sweep 1
       inc P2
       sweep 1
       print "back from _inc\n"
  -    invoke P1
  +    returncc
   
   .pcc_sub _inc:
       print "inc\n"
       sweep 1
  -    invoke P1
  +    returncc
   CODE
   init
   inc
  @@ -247,7 +243,7 @@
       null I3
       null I4
       set S5, P12
  -    invoke P1
  +    returncc
   
   .namespace ["Source::Buffer"]
   .pcc_sub __get_string:
  @@ -260,7 +256,7 @@
       set I2, 1
       null I3
       null I4
  -    invoke P1
  +    returncc
   CODE
   hello
   hello
  @@ -271,9 +267,7 @@
   output_is(<<'CODE', <<OUTPUT, "coro context and invalid return 
continuations");
       newsub P0, .Coroutine, co1
   l:
  -    savetop
       invokecc
  -    restoretop
       inc I20
       lt I20, 3, l
       print "done\n"
  @@ -283,9 +277,7 @@
   col:
       print "coro\n"
       sweep 1
  -    savetop
       invoke P0
  -    restoretop
       branch col
   CODE
   coro
  
  
  
  1.38      +2 -2      parrot/t/op/interp.t
  
  Index: interp.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/op/interp.t,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- interp.t  1 Oct 2004 21:16:49 -0000       1.37
  +++ interp.t  19 Nov 2004 13:45:30 -0000      1.38
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: interp.t,v 1.37 2004/10/01 21:16:49 jrieks Exp $
  +# $Id: interp.t,v 1.38 2004/11/19 13:45:30 leo Exp $
   
   =head1 NAME
   
  @@ -257,7 +257,7 @@
       print P0
       print I0
       print S0
  -    invoke P1
  +    returncc
   CODE
   ok 1
   hello from 2 clone
  
  
  
  1.13      +2 -2      parrot/t/pmc/coroutine.t
  
  Index: coroutine.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/coroutine.t,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- coroutine.t       28 Oct 2004 07:59:29 -0000      1.12
  +++ coroutine.t       19 Nov 2004 13:45:32 -0000      1.13
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: coroutine.t,v 1.12 2004/10/28 07:59:29 leo Exp $
  +# $Id: coroutine.t,v 1.13 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -407,7 +407,7 @@
           .pcc_end_yield
           x = x + 1
       if x <= 10 goto iloop
  -    invoke P1
  +    returncc
   .end
   CODE
   0 0
  
  
  
  1.9       +16 -16    parrot/t/pmc/delegate.t
  
  Index: delegate.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/delegate.t,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- delegate.t        1 Oct 2004 21:16:52 -0000       1.8
  +++ delegate.t        19 Nov 2004 13:45:32 -0000      1.9
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: delegate.t,v 1.8 2004/10/01 21:16:52 jrieks Exp $
  +# $Id: delegate.t,v 1.9 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -32,7 +32,7 @@
       print I5
       print "\n"
       # just return
  -    invoke P1
  +    returncc
   CODE
   42
   OUTPUT
  @@ -46,7 +46,7 @@
   .namespace ["delegate"]
   .pcc_sub __get_integer:
       set I5, 42
  -    invoke P1
  +    returncc
   CODE
   42
   OUTPUT
  @@ -59,7 +59,7 @@
   .pcc_sub __set_string_native:
       print S5
       print "\n"
  -    invoke P1
  +    returncc
   CODE
   fortytwo
   OUTPUT
  @@ -73,7 +73,7 @@
   .namespace ["delegate"]
   .pcc_sub __get_string:
       set S5, "fortytwo"
  -    invoke P1
  +    returncc
   CODE
   fortytwo
   OUTPUT
  @@ -86,7 +86,7 @@
   .pcc_sub __set_number_native:
       print N5
       print "\n"
  -    invoke P1
  +    returncc
   CODE
   47.110000
   OUTPUT
  @@ -100,7 +100,7 @@
   .namespace ["delegate"]
   .pcc_sub __get_number:
       set N5, 47.11
  -    invoke P1
  +    returncc
   CODE
   47.110000
   OUTPUT
  @@ -116,7 +116,7 @@
       print P5
       print "\n"
       # just return
  -    invoke P1
  +    returncc
   CODE
   42
   OUTPUT
  @@ -136,12 +136,12 @@
       # just return
       print I5
       print "\n"
  -    invoke P1
  +    returncc
   .pcc_sub __add_int:
       print I5
       print "\n"
       set P5, 3
  -    invoke P1
  +    returncc
   CODE
   1
   1
  @@ -166,7 +166,7 @@
       # just print arg and return
       print I5
       print "\n"
  -    invoke P1
  +    returncc
   .pcc_sub __add:
       print "in __add\n"
       print P2 # self - this triggers __get_string
  @@ -176,10 +176,10 @@
       print P6 # dest
       print "\n"
       set P6, 3
  -    invoke P1
  +    returncc
   .pcc_sub __get_string:
       set S5, "one"
  -    invoke P1
  +    returncc
   CODE
   1
   in __add
  @@ -208,7 +208,7 @@
       # just print arg and return
       print I5
       print "\n"
  -    invoke P1
  +    returncc
   .pcc_sub __add:
       print "in __add\n"
       print P2 # self - this triggers __get_string
  @@ -219,13 +219,13 @@
       print "\n"
       set P6, 3
       set S5, "nok"
  -    invoke P1
  +    returncc
   .pcc_sub __get_string:
       set S5, "one"
       null P2  # clobber registers these must be restored
       null P5
       null P6
  -    invoke P1
  +    returncc
   CODE
   1
   in __add
  
  
  
  1.13      +8 -8      parrot/t/pmc/eval.t
  
  Index: eval.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/eval.t,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- eval.t    10 Nov 2004 11:19:32 -0000      1.12
  +++ eval.t    19 Nov 2004 13:45:32 -0000      1.13
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: eval.t,v 1.12 2004/11/10 11:19:32 leo Exp $
  +# $Id: eval.t,v 1.13 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -24,7 +24,7 @@
        set S5, "in eval\n"
        set I0, 1
        set I2, 1
  -     compile P0, P1, "print S5\ninvoke P1\n"
  +     compile P0, P1, "print S5\nreturncc\n"
        invokecc                        # eval code P0
        print "back again\n"
        end
  @@ -37,7 +37,7 @@
   output_is(<<'CODE', <<'OUTPUT', "call subs in evaled code ");
       set S5, ".pcc_sub _foo:\n"
       concat S5, "print \"foo\\n\"\n"
  -    concat S5, "invoke P1\n"
  +    concat S5, "returncc\n"
       compreg P1, "PASM"
       compile P0, P1, S5
       find_global P0, "_foo"
  @@ -52,10 +52,10 @@
   output_is(<<'CODE', <<'OUTPUT', "call 2 subs in evaled code ");
       set S5, ".pcc_sub _foo:\n"
       concat S5, "print \"foo\\n\"\n"
  -    concat S5, "invoke P1\n"
  +    concat S5, "returncc\n"
       concat S5, ".pcc_sub _bar:\n"
       concat S5, "print \"bar\\n\"\n"
  -    concat S5, "invoke P1\n"
  +    concat S5, "returncc\n"
       compreg P1, "PASM"
       compile P0, P1, S5
       set P6, P0               # keep Sub PMC segment alive
  @@ -125,7 +125,7 @@
       .local pmc the_sub
       .local string code
       code = "print \"ok\\n\"\n"
  -    code .= "invoke P1\n"
  +    code .= "returncc\n"
       the_sub = my_compiler("_foo", code)
       the_sub()
       the_sub = global "_foo"
  @@ -160,7 +160,7 @@
        $P1['builtin'] = $P0
   
        $P2 = compreg "PIR"
  -     $S0 = ".sub main\nprint \"dynamic\\n\"\ninvoke P1\n.end"
  +     $S0 = ".sub main\nprint \"dynamic\\n\"\nreturncc\n.end"
        $P0 = compile $P2, $S0
        $P1['dynamic'] = $P0
   
  @@ -169,7 +169,7 @@
        $S0 = ".sub main\n$P1 = find_global\"funcs\"\n"
        $S0 .= "$P0 = $P1['dynamic']\n$P0()\n"
        $S0 .= "$P0 = $P1['builtin']\n$P0()\n"
  -     $S0 .= "invoke P1\n.end"
  +     $S0 .= "returncc\n.end"
   
        $P2 = compreg "PIR"
        $P0 = compile $P2, $S0
  
  
  
  1.20      +2 -2      parrot/t/pmc/freeze.t
  
  Index: freeze.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/freeze.t,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- freeze.t  11 Nov 2004 13:26:34 -0000      1.19
  +++ freeze.t  19 Nov 2004 13:45:32 -0000      1.20
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: freeze.t,v 1.19 2004/11/11 13:26:34 leo Exp $
  +# $Id: freeze.t,v 1.20 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -351,7 +351,7 @@
       end
   .pcc_sub _foo:
       print "in sub _foo\n"
  -    invoke P1
  +    returncc
   CODE
   Sub
   in sub _foo
  
  
  
  1.11      +2 -2      parrot/t/pmc/mmd.t
  
  Index: mmd.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/mmd.t,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- mmd.t     14 May 2004 16:11:27 -0000      1.10
  +++ mmd.t     19 Nov 2004 13:45:32 -0000      1.11
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: mmd.t,v 1.10 2004/05/14 16:11:27 dan Exp $
  +# $Id: mmd.t,v 1.11 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -317,7 +317,7 @@
       set I10, P5
       bxor I11, I10, I5
       set P6, I11
  -    invoke P1
  +    returncc
   CODE
   ok
   1
  
  
  
  1.60      +10 -10    parrot/t/pmc/nci.t
  
  Index: nci.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/nci.t,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- nci.t     15 Oct 2004 16:05:27 -0000      1.59
  +++ nci.t     19 Nov 2004 13:45:32 -0000      1.60
  @@ -1,7 +1,7 @@
   #! perl -w
   
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: nci.t,v 1.59 2004/10/15 16:05:27 leo Exp $
  +# $Id: nci.t,v 1.60 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -1065,7 +1065,7 @@
     print "\n"
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   
   CODE
   ok 1
  @@ -1138,7 +1138,7 @@
     print "\n"
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   .end
   
   CODE
  @@ -1197,7 +1197,7 @@
     print "\n"
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   
   
   CODE
  @@ -1285,7 +1285,7 @@
   
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   .end
   
   CODE
  @@ -1344,7 +1344,7 @@
     print "\n"
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   
   CODE
   ok 1
  @@ -1402,7 +1402,7 @@
     print "\n"
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   
   
   CODE
  @@ -1475,7 +1475,7 @@
     print "\n"
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   .end
   
   CODE
  @@ -1563,7 +1563,7 @@
   
     find_global P12, "cb_done"
     inc P12
  -  invoke P1
  +  returncc
   .end
   
   CODE
  @@ -1647,7 +1647,7 @@
     I17 = I17 * 10
     P6[0] = I17
   
  -  invoke P1
  +  returncc
   .end
   
   CODE
  
  
  
  1.21      +32 -38    parrot/t/pmc/object-meths.t
  
  Index: object-meths.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/object-meths.t,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- object-meths.t    1 Oct 2004 21:16:52 -0000       1.20
  +++ object-meths.t    19 Nov 2004 13:45:32 -0000      1.21
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: object-meths.t,v 1.20 2004/10/01 21:16:52 jrieks Exp $
  +# $Id: object-meths.t,v 1.21 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -71,7 +71,7 @@
   .namespace ["Foo"]
   .pcc_sub meth:
       print "in meth\n"
  -    invoke P1
  +    returncc
   CODE
   main
   in meth
  @@ -130,7 +130,7 @@
   .namespace ["Foo"]
   .pcc_sub __init:
       print "ok 1\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  @@ -147,7 +147,7 @@
   .namespace ["Foo"]
   .pcc_sub __init:
       print "nok ok!\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   OUTPUT
  @@ -176,7 +176,7 @@
   .namespace ["Foo"]
   .pcc_sub __init:
       print "nok ok 2!\n"
  -    invoke P1
  +    returncc
   CODE
   catched it
   Class BUILD method ('bar') not found
  @@ -198,12 +198,12 @@
       set P10, 42
       classoffset I0, P2, "Foo"
       setattribute P2, I0, P10
  -    invoke P1
  +    returncc
   .pcc_sub __get_string:
       classoffset I0, P2, "Foo"
       getattribute P10, P2, I0
       set S5, P10
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  @@ -229,22 +229,22 @@
       classname S0, P2
       print S0
       print "\n"
  -    invoke P1
  +    returncc
   
       .namespace ["Bar"]
   .pcc_sub __init:
       print "bar_init\n"
  -    invoke P1
  +    returncc
   
       .namespace ["Baz"]
   .pcc_sub __init:
       print "baz_init\n"
  -    invoke P1
  +    returncc
   
       .namespace [""]  # main again
   .pcc_sub _sub:
       print "in sub\n"
  -    invoke P1
  +    returncc
   
   CODE
   foo_init
  @@ -430,44 +430,38 @@
   B::foo
   OUTPUT
   
  +SKIP: {
  +    skip("currently failing - exceptions are being redone", 1);
   output_is(<<'CODE', <<'OUTPUT', "exceptions and different runloops");
   _main:
  -    newsub P0, .Exception_Handler, _eh
  +    newsub P0, .Exception_Handler, eh
       set_eh P0
   
       newclass P0, "Foo"
   
  -    newsub P0, .Sub, __init
  -    store_global "Foo", "__init", P0
  -
       print "new\n"
       find_type I0, "Foo"
       new P2, I0
  +eh:
       print "back in main\n"
       end
   
  -_eh:
  -    print "eh!\n"
  -    set P0, P5["_invoke_cc"]
  -    invoke P0
  -
  -__init:
  -    set P10, P1
  +.namespace ["Foo"]
  +.pcc_sub __init:
       print "in __init\n"
   
       # raise an exception
       set S0, "qux"
  -    callmethod
  +    callmethodcc
   
  -    print "back in __init\n"
  -    invoke P10
  +    print "never\n"
  +    returncc
   CODE
   new
   in __init
  -eh!
  -back in __init
   back in main
   OUTPUT
  +}
   
   output_is(<<'CODE', <<'OUTPUT', "fetchmethod");
       newclass P3, "Foo"
  @@ -490,7 +484,7 @@
   .namespace ["Foo"]
   .pcc_sub meth:
       print "in meth\n"
  -    invoke P1
  +    returncc
   CODE
   main
   in meth
  @@ -603,27 +597,27 @@
   .namespace ["A"]
   .pcc_sub __init:
       print "A init\n"
  -    invoke P1
  +    returncc
   .namespace ["B"]
   .pcc_sub __init:
       print "B init\n"
  -    invoke P1
  +    returncc
   .namespace ["C"]
   .pcc_sub __init:
       print "C init\n"
  -    invoke P1
  +    returncc
   .namespace ["D"]
   .pcc_sub __init:
       print "D init\n"
  -    invoke P1
  +    returncc
   .namespace ["E"]
   .pcc_sub __init:
       print "E init\n"
  -    invoke P1
  +    returncc
   .namespace ["F"]
   .pcc_sub __init:
       print "F init\n"
  -    invoke P1
  +    returncc
   CODE
   F isa D 1
   D isa F 0
  @@ -674,22 +668,22 @@
       classname S0, P2
       print S0
       print "\n"
  -    invoke P1
  +    returncc
   
       .namespace ["Bar"]
   .pcc_sub _new:
       print "bar_init\n"
  -    invoke P1
  +    returncc
   
       .namespace ["Baz"]
   .pcc_sub _new:
       print "baz_init\n"
  -    invoke P1
  +    returncc
   
       .namespace [""]  # main again
   .pcc_sub _sub:
       print "in sub\n"
  -    invoke P1
  +    returncc
   
   CODE
   foo_init
  
  
  
  1.56      +11 -11    parrot/t/pmc/objects.t
  
  Index: objects.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/objects.t,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- objects.t 28 Oct 2004 07:59:29 -0000      1.55
  +++ objects.t 19 Nov 2004 13:45:32 -0000      1.56
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: objects.t,v 1.55 2004/10/28 07:59:29 leo Exp $
  +# $Id: objects.t,v 1.56 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -717,7 +717,7 @@
       classoffset I3, P2, "Foo"
       add I4, I3, I5
       setattribute P2, I4, P5  # so always put new PMCs in
  -    invoke P1
  +    returncc
   
   # Pattr = get(obj: Iattr_idx)
   .pcc_sub Foo::get:
  @@ -725,7 +725,7 @@
       classoffset I3, P2, "Foo"
       add I4, I3, I5
       getattribute P5, P2, I4
  -    invoke P1
  +    returncc
   
   .pcc_sub Bar::set:
       print "in Bar::set\n"
  @@ -734,7 +734,7 @@
       setattribute P2, I4, P5  # so always put new PMCs in
       set I0, 0
       set I3, 0
  -    invoke P1
  +    returncc
   
   .pcc_sub Bar::get:
       print "in Bar::get\n"
  @@ -743,7 +743,7 @@
       getattribute P5, P2, I4
       set I0, 0
       set I3, 1
  -    invoke P1
  +    returncc
   CODE
   in Foo::set
   in Foo::set
  @@ -895,7 +895,7 @@
       setattribute P2, I4, P5
       set I0, 0
       set I3, 0
  -    invoke P1
  +    returncc
   
   # Pattr = get(obj: SClass, Iattr_idx)
   .pcc_sub get:
  @@ -904,7 +904,7 @@
       getattribute P5, P2, I4
       set I0, 0
       set I3, 1
  -    invoke P1
  +    returncc
   
   CODE
   i
  @@ -952,7 +952,7 @@
       new P6, .PerlInt
       set P6, I5
       setattribute P2, I0, P6
  -    invoke P1
  +    returncc
   .pcc_sub add:
       print "in add\n"
       classoffset I0, P5, "Foo"
  @@ -961,7 +961,7 @@
       new P12, .PerlInt
       add P12, P10, P11
       setattribute P7, I0, P12
  -    invoke P1
  +    returncc
   .pcc_sub get_s:
       print "in get_string\n"
       classoffset I0, P2, "Foo"
  @@ -971,7 +971,7 @@
       ne I0, 2, no_2
       set S5, "two"
   no_2:
  -    invoke P1
  +    returncc
   CODE
   in set_integer
   in set_integer
  @@ -1674,7 +1674,7 @@
       set P5, P10                      # set return value
       set I0, 0
       set I3, 1
  -    invoke P1
  +    returncc
   CODE
   42
   OUTPUT
  
  
  
  1.97      +5 -5      parrot/t/pmc/pmc.t
  
  Index: pmc.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/pmc.t,v
  retrieving revision 1.96
  retrieving revision 1.97
  diff -u -r1.96 -r1.97
  --- pmc.t     30 Oct 2004 11:32:24 -0000      1.96
  +++ pmc.t     19 Nov 2004 13:45:32 -0000      1.97
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: pmc.t,v 1.96 2004/10/30 11:32:24 leo Exp $
  +# $Id: pmc.t,v 1.97 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -1556,13 +1556,13 @@
      set I0, 1
      set I1, 1 # 1 string retval
      set I3, 0 # no pmc
  -   invoke P1
  +   returncc
   .pcc_sub __type:
      find_type I5, "delegate"
      set I0, 1
      set I1, 1
      set I3, 0
  -   invoke P1
  +   returncc
   CODE
   All names and ids ok.
   OUTPUT
  @@ -2625,7 +2625,7 @@
   output_is(<<'CODE', '1foo23', "set_p_pc - Sub constant");
   .pcc_sub foo:      # be sure, this is constant #0
       print 2
  -    invoke P1
  +    returncc
   .pcc_sub @MAIN main:
       print 1
       set_p_pc P0, 0
  @@ -2644,7 +2644,7 @@
       end
   .pcc_sub foo:
       print "ok 2\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  
  
  
  1.52      +39 -147   parrot/t/pmc/sub.t
  
  Index: sub.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/sub.t,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- sub.t     12 Nov 2004 16:38:39 -0000      1.51
  +++ sub.t     19 Nov 2004 13:45:32 -0000      1.52
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: sub.t,v 1.51 2004/11/12 16:38:39 leo Exp $
  +# $Id: sub.t,v 1.52 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -17,7 +17,7 @@
   
   =cut
   
  -use Parrot::Test tests => 79;
  +use Parrot::Test tests => 49;
   use Test::More;
   use Parrot::Config;
   
  @@ -36,7 +36,7 @@
       end
   _func:
       print "func\n"
  -    invoke P1
  +    returncc
   CODE
   main
   func
  @@ -51,7 +51,7 @@
       end
   _func:
       print "func\n"
  -    invoke P1
  +    returncc
   CODE
   main
   func
  @@ -84,12 +84,10 @@
       eq I5, 0, endfunc
       dec I5
   
  -    save P1
       invokecc   # recursive invoke
  -    restore P1
   
   endfunc:
  -    invoke P1
  +    returncc
   CODE
   3
   2
  @@ -124,12 +122,10 @@
       eq I5, 0, endfunc
       dec I5
   
  -    save P1
       invokecc P0  # recursive invoke
  -    restore P1
   
   endfunc:
  -    invoke P1
  +    returncc
   CODE
   3
   2
  @@ -259,7 +255,7 @@
       set_addr P5, f
       set I0, 0        # non-proto
       set I3, 1        # 1 retval
  -    invoke P1                # ret
  +    returncc         # ret
   
   # expects arg in P5, returns incremented result in P5
   f:
  @@ -270,7 +266,7 @@
       set P5, P2
       set I0, 0        # non-proto
       set I3, 1        # 1 retval
  -    invoke P1                # ret
  +    returncc         # ret
   
   CODE
   8
  @@ -298,7 +294,7 @@
   
   func2:
       print "in func2\n"
  -    invoke P1
  +    returncc
   
   CODE
   in func1
  @@ -323,7 +319,7 @@
   
   func2:
       print "in func2\n"
  -    invoke P1
  +    returncc
   
   CODE
   in func1
  @@ -347,11 +343,11 @@
   ret2:
       popbottomp
       print "func1\n"
  -    invoke P1
  +    returncc
   
   _func2:
       print "func2\n"
  -    invoke P1
  +    returncc
   
   CODE
   main
  @@ -361,53 +357,6 @@
   back
   OUTPUT
   
  -for my $R (0..4) {
  -for my $N (254..258) {
  -output_is(<<"CODE", <<'OUTPUT', "test COW $R $N");
  -    print "main\\n"
  -    set I16, 0
  -    set I17, $N              #~1 chunk full
  -lp:
  -    save I16
  -    inc I16
  -    le I16, I17, lp
  -    newsub .Continuation, .RetContinuation, _func, ret
  -    pushbottomi
  -    invoke
  -    popbottomi
  -ret:
  -lp2:
  -    restore I16
  -    eq I16, I17, ok
  -    print "nok I16: "
  -    print I16
  -    print " I17: "
  -    print I17
  -    print "\\n"
  -    end
  -ok:
  -    dec I17
  -    if I17, lp2
  -    print "back\\n"
  -    end
  -_func:
  -    print "func\\n"
  -    set I0, $R
  -lp3:
  -    unless I0, cont
  -    save I0
  -    dec I0
  -    branch lp3
  -cont:
  -    invoke P1
  -CODE
  -main
  -func
  -back
  -OUTPUT
  -}
  -}
  -
   output_like(<<'CODE', <<'OUTPUT', "interp - warnings");
       new P0, .PerlUndef
       set I0, P0
  @@ -423,7 +372,7 @@
       warningson 1
       new P0, .PerlUndef
       set I0, P0
  -    invoke P1
  +    returncc
   CODE
   /^main:Use of uninitialized value in integer context
   \s+in file.*:back$/s
  @@ -446,7 +395,7 @@
       warningsoff 1
       new P0, .PerlUndef
       set I0, P0
  -    invoke P1
  +    returncc
   CODE
   /^Use of uninitialized value in integer context
   \s+in file.*:main:back:Use of un.*$/sm
  @@ -474,7 +423,7 @@
       warningsoff 1
       new P0, .PerlUndef
       set I0, P0
  -    invoke P1
  +    returncc
   CODE
   /^Use of uninitialized value in integer context
   \s+in file.*:main:back:Use of un.*$/sm
  @@ -492,7 +441,7 @@
       end
   .pcc_sub _the_sub:
       print "in sub\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   in sub
  @@ -519,7 +468,7 @@
   
   .pcc_sub _next_sub:
       print "in next sub\n"
  -    invoke P1
  +    returncc
       print "never here\n"
       end
   CODE
  @@ -541,7 +490,7 @@
       end
   .pcc_sub _the::sub::some::where:
       print "in sub\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   in sub
  @@ -581,7 +530,7 @@
   print S <<'EOF';
     .pcc_sub _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -611,10 +560,10 @@
   print S <<'EOF';
     .pcc_sub _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
     .pcc_sub _sub2:
     print "in sub2\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -800,7 +749,7 @@
   print S <<'EOF';
     .pcc_sub @LOAD _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -822,7 +771,7 @@
     print "error\n"
     .pcc_sub @LOAD _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -856,10 +805,10 @@
   print S <<'EOF';
     .pcc_sub @LOAD _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
     .pcc_sub _sub2:
     print "in sub2\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -903,10 +852,10 @@
   print S <<'EOF';
     .pcc_sub _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
     .pcc_sub @LOAD _sub2:
     print "in sub2\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -950,10 +899,10 @@
   print S <<'EOF';
     .pcc_sub @LOAD _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
     .pcc_sub @LOAD _sub2:
     print "in sub2\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   
  @@ -998,7 +947,7 @@
   output_is(<<'CODE', <<'OUTPUT', '@MAIN pragma');
   .pcc_sub _first:
       print "first\n"
  -    invoke P1
  +    returncc
   .pcc_sub @MAIN _main:
       print "main\n"
       end
  @@ -1009,13 +958,13 @@
   output_is(<<'CODE', <<'OUTPUT', 'two @MAIN pragmas');
   .pcc_sub _first:
       print "first\n"
  -    invoke P1
  +    returncc
   .pcc_sub @MAIN _main:
       print "main\n"
       end
   .pcc_sub @MAIN _second:
       print "second\n"
  -    invoke P1
  +    returncc
   CODE
   main
   OUTPUT
  @@ -1023,10 +972,10 @@
   output_is(<<'CODE', <<'OUTPUT', '@MAIN pragma call subs');
   .pcc_sub _first:
       print "first\n"
  -    invoke P1
  +    returncc
   .pcc_sub _second:
       print "second\n"
  -    invoke P1
  +    returncc
   .pcc_sub @MAIN _main:
       print "main\n"
       find_global P0, "_first"
  @@ -1040,63 +989,6 @@
   second
   OUTPUT
   
  -my ($fpc, $cfg);
  -$cfg = "include/parrot/config.h";
  -open(I, $cfg) or die "Cant read $cfg: $!";
  -while (<I>) {
  -    if (/FRAMES_PER_CHUNK\s+(\d+)/) {
  -     $fpc = $1;
  -     last;
  -    }
  -}
  -close I;
  -die "Cant find FRAMES_PER_CHUNK in $cfg" unless ($fpc) ;
  -for my $N ($fpc-2..$fpc+2) {
  -output_is(<<"CODE", <<'OUTPUT', "test COW w strings $N");
  -    print "main\\n"
  -    set I16, 0
  -    set I17, $N
  -lp:
  -    set S16, I16
  -    savetop
  -    inc I16
  -    le I16, I17, lp
  -    newsub P0, .Continuation, _func
  -    invokecc
  -
  -lp2:
  -    restoretop
  -    set S0, I16
  -    # triggers DOD with --gc-debug
  -    ne S0, S16, nok
  -    dec I16
  -    if I16, lp2
  -    print "ok\\n"
  -    end
  -nok:
  -    print "not ok S0 = '"
  -    print S0
  -    print "' S16 = '"
  -    print S16
  -    print "'\\n"
  -    end
  -_func:
  -    print "func\\n"
  -    set I16, 0
  -    set I17, @{[ $N+$fpc ]}
  -lp3:
  -    set S16, I16
  -    savetop
  -    inc I16
  -    le I16, I17, lp3
  -    invoke P1
  -CODE
  -main
  -func
  -ok
  -OUTPUT
  -}
  -
   
   $temp = "temp.imc";
   open S, ">$temp" or die "Can't write $temp";
  @@ -1104,7 +996,7 @@
   .emit
     .pcc_sub @LOAD _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
   .eom
   EOF
   close S;
  @@ -1132,7 +1024,7 @@
   # instruction of a compilation unit
     .pcc_sub @LOAD _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
   .eom
   EOF
   close S;
  @@ -1156,7 +1048,7 @@
     print "error\n"
     .pcc_sub _sub1:
     print "in sub1\n"
  -  invoke P1
  +  returncc
   .eom
   EOF
   close S;
  @@ -1244,7 +1136,7 @@
       print P20
       print "\n"
       interpinfo P1, .INTERPINFO_CURRENT_CONT
  -    invoke P1
  +    returncc
   CODE
   main
   the_sub
  @@ -1271,7 +1163,7 @@
       print P20
       print "\n"
       interpinfo P1, .INTERPINFO_CURRENT_CONT
  -    invoke P1
  +    returncc
   CODE
   main
   the_sub
  
  
  
  1.12      +10 -10    parrot/t/pmc/threads.t
  
  Index: threads.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/threads.t,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- threads.t 7 Oct 2004 09:28:20 -0000       1.11
  +++ threads.t 19 Nov 2004 13:45:32 -0000      1.12
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: threads.t,v 1.11 2004/10/07 09:28:20 jrieks Exp $
  +# $Id: threads.t,v 1.12 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -34,7 +34,7 @@
   
   if ($^O eq "cygwin" ) {
       my @uname = split / /, qx'uname -v';
  -    
  +
       if ($uname[0] eq "2004-09-04" ) {
        plan skip_all => "This cygwin version is known to fail the thread 
tests";
        exit;
  @@ -94,7 +94,7 @@
       print I5
       print "\n"
       set I3, 0   # no retval
  -    invoke P1        # ret and be done with thread
  +    returncc # ret and be done with thread
   
   # output from threads could be reversed
   CODE
  @@ -148,7 +148,7 @@
       print S0
       print "\n"
       set I3, 0
  -    invoke P1        # ret and be done with thread
  +    returncc # ret and be done with thread
   
   CODE
   ok 1
  @@ -187,7 +187,7 @@
       noop
       branch lp
       print "never\n"
  -    invoke P1
  +    returncc
   CODE
   start 1
   in thread
  @@ -285,7 +285,7 @@
       sleep 0.1
       new P2, .PerlInt
       push P6, P2              # push item on queue
  -    invoke P1
  +    returncc
   CODE
   /(done\nthread\n)|(thread\ndone\n)/
   OUTPUT
  @@ -316,7 +316,7 @@
       print P6
       print "\n"
       inc P6
  -    invoke P1
  +    returncc
   CODE
   thread
   20
  @@ -363,7 +363,7 @@
       branch loop
   ex:
       print "done thread\n"
  -    invoke P1
  +    returncc
   CODE
   3
   1
  @@ -413,7 +413,7 @@
       branch loop
   ex:
       print "done thread\n"
  -    invoke P1
  +    returncc
   CODE
   3
   ok 1
  @@ -490,7 +490,7 @@
       branch loop
   ex:
       print "done thread\n"
  -    invoke P1
  +    returncc
   CODE
   3
   ok 1
  
  
  
  1.14      +6 -6      parrot/t/pmc/timer.t
  
  Index: timer.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/pmc/timer.t,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- timer.t   1 Oct 2004 21:16:52 -0000       1.13
  +++ timer.t   19 Nov 2004 13:45:32 -0000      1.14
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: timer.t,v 1.13 2004/10/01 21:16:52 jrieks Exp $
  +# $Id: timer.t,v 1.14 2004/11/19 13:45:32 leo Exp $
   
   =head1 NAME
   
  @@ -115,7 +115,7 @@
       end
   .pcc_sub _timer_sub:
       print "ok 2\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  @@ -143,7 +143,7 @@
       end
   .pcc_sub _timer_sub:
       print "never\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  @@ -170,7 +170,7 @@
       end
   .pcc_sub _timer_sub:
       print "ok 2\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  @@ -204,7 +204,7 @@
       end
   .pcc_sub _timer_sub:
       print "never\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  @@ -238,7 +238,7 @@
       end
   .pcc_sub _timer_sub:
       print "never\n"
  -    invoke P1
  +    returncc
   CODE
   ok 1
   ok 2
  
  
  
  1.29      +4 -4      parrot/t/src/extend.t
  
  Index: extend.t
  ===================================================================
  RCS file: /cvs/public/parrot/t/src/extend.t,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- extend.t  28 Oct 2004 12:13:32 -0000      1.28
  +++ extend.t  19 Nov 2004 13:45:33 -0000      1.29
  @@ -1,6 +1,6 @@
   #! perl -w
   # Copyright: 2001-2003 The Perl Foundation.  All Rights Reserved.
  -# $Id: extend.t,v 1.28 2004/10/28 12:13:32 leo Exp $
  +# $Id: extend.t,v 1.29 2004/11/19 13:45:33 leo Exp $
   # Tests the extension API
   
   =head1 NAME
  @@ -393,11 +393,11 @@
   print S <<'EOF';
     .pcc_sub _sub1:
     printerr "in sub1\n"
  -  invoke P1
  +  returncc
     .pcc_sub _sub2:
     printerr P5
     printerr "in sub2\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   # compile to pbc
  @@ -471,7 +471,7 @@
     new_pad 0
     find_lex P2, "no_such_var"
     printerr "never\n"
  -  invoke P1
  +  returncc
   EOF
   close S;
   # compile to pbc
  
  
  

Reply via email to