- Timestamp:
- 10/31/08 20:30:41 (2 months ago)
- Location:
- v6/smop/SMOP
- Files:
-
- 3 modified
-
SMOP.xs (modified) (3 diffs)
-
lib/SMOP.pm (modified) (1 diff)
-
t/run_mold.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
v6/smop/SMOP/SMOP.xs
r22806 r22843 9 9 #include <smop_s1p.h> 10 10 #include <smop_identifiers.h> 11 #include <smop_mold.h> 11 12 12 13 MODULE = SMOP PACKAGE = SMOP … … 106 107 107 108 SV* 108 create(SV* p5class, int ccount, SV* consts, int bcount,SV* bytecode)109 create(SV* p5class, int ccount, SV* consts, SV* bytecode) 109 110 CODE: 110 111 AV* constsav = (AV*)SvRV(consts); … … 137 138 code_arr[i] = SvIV(*e); 138 139 } 139 SMOP__Object* mold = SMOP__Mold_create(ccount, consts_arr, bcount, code_arr);140 SMOP__Object* mold = SMOP__Mold_create(ccount, consts_arr, codelen, code_arr); 140 141 SV* pointer = newSViv((int)mold); 141 142 SV* object = newRV_noinc(pointer); -
v6/smop/SMOP/lib/SMOP.pm
r22801 r22843 27 27 my $rootns = SMOP::S1P->RootNamespace; 28 28 my $prelud = SMOP::S1P->LexicalPrelude; 29 my $mold = SMOP::Mold->create(12,[$rootns, $int, $true, $fals], 30 45,[1,2,3,1,2,3,1,2,3]); 29 my $mold = SMOP::Mold->create(12,[$rootns, $int, $true, $fals], [1,2,3,1,2,3,1,2,3]); 31 30 my $frame = SMOP::MoldFrame->create($mold); 32 31 my $result = SMOP::Interpreter->run($frame); -
v6/smop/SMOP/t/run_mold.t
r22803 r22843 17 17 [ '$OUT','$_','FETCH','back','continuation', 18 18 'goto','lookup','postcircumfix:{ }','print' ], 19 59,20 19 [ 1,11,10,7,1,1,0,1,12,11,2,0,0,1,13,12,2,0,0,1, 21 20 15,10,6,1,0,0,1,16,15,2,0,0,1,14,16,8,1,13,0,1, 22 21 17,9,4,0,0,1,18,17,3,0,0,1,14,9,5,1,18,0,0 ]), 23 22 SMOP::S1P->LexicalPrelude ], 24 146,25 23 [ 1,23,21,10,1,3,0,1,24,23,7,0,0,1,22,24,19,1,5,0,1,25,21, 26 24 10,1,6,0,1,26,25,7,0,0,1,27,1,12,0,2,16,21,1,28,27,16,0,
