@@ -2339,35 +2339,22 @@ class QAST::CompilerJAST {
2339
2339
has % ! cuid_to_idx ;
2340
2340
has @ ! jastmeth_names ;
2341
2341
has @ ! cuids ;
2342
- has @ ! names ;
2343
- has @ ! lexical_name_lists ;
2344
- has @ ! outer_mappings ;
2345
2342
has @ ! callsites ;
2346
2343
has % ! callsite_map ;
2347
- has @ ! handlers ;
2348
2344
2349
2345
method BUILD () {
2350
2346
$ ! cur_idx := 0 ;
2351
2347
% ! cuid_to_idx := {};
2352
2348
@ ! jastmeth_names := [];
2353
2349
@ ! cuids := [];
2354
- @ ! names := [];
2355
- @ ! lexical_name_lists := [];
2356
- @ ! outer_mappings := [];
2357
2350
@ ! callsites := [];
2358
2351
% ! callsite_map := {};
2359
- @ ! handlers := [];
2360
2352
}
2361
2353
2362
- my $ nolex := [[],[],[],[]];
2363
- my $ noargs := [0 ,0 ,0 ,0 ];
2364
- method register_method ($ jastmeth , $ cuid , $ name , @ handlers ) {
2354
+ method register_method ($ jastmeth , $ cuid ) {
2365
2355
% ! cuid_to_idx {$ cuid } := $ ! cur_idx ;
2366
2356
nqp :: push (@ ! jastmeth_names , $ jastmeth . name );
2367
2357
nqp :: push (@ ! cuids , $ cuid );
2368
- nqp :: push (@ ! names , $ name );
2369
- nqp :: push (@ ! lexical_name_lists , $ nolex );
2370
- nqp :: push (@ ! handlers , @ handlers );
2371
2358
$ ! cur_idx := $ ! cur_idx + 1 ;
2372
2359
}
2373
2360
@@ -2381,15 +2368,6 @@ class QAST::CompilerJAST {
2381
2368
@ ! jastmeth_names [self . cuid_to_idx($ cuid )]
2382
2369
}
2383
2370
2384
- method set_lexical_names ($ cuid , @ ilex , @ nlex , @ slex , @ olex ) {
2385
- @ ! lexical_name_lists [self . cuid_to_idx($ cuid )] := [@ ilex , @ nlex , @ slex , @ olex ];
2386
- }
2387
-
2388
- method set_outer ($ cuid , $ outer_cuid ) {
2389
- nqp :: push (@ ! outer_mappings ,
2390
- [self . cuid_to_idx($ cuid ), self . cuid_to_idx($ outer_cuid )]);
2391
- }
2392
-
2393
2371
method get_callsite_idx (@ arg_types , @ arg_names ) {
2394
2372
my $ key := join (" -" , @ arg_types ) ~ ' ;' ~ join (" \0" , @ arg_names );
2395
2373
if nqp ::existskey(% ! callsite_map , $ key ) {
@@ -3033,12 +3011,11 @@ class QAST::CompilerJAST {
3033
3011
my $ * JMETH := JAST::Method. new ( : name(self . unique (' qb_' )), : returns(' Void' ), : static(0 ) );
3034
3012
$ * JMETH . cr_name($ node . name );
3035
3013
$ * JMETH . cr_cuid($ node . cuid);
3036
- $ * CODEREFS . register_method($ * JMETH , $ node . cuid, $ node . name , @ handlers );
3014
+ $ * CODEREFS . register_method($ * JMETH , $ node . cuid);
3037
3015
3038
3016
# Set outer if we have one.
3039
3017
if nqp ::istype($ outer , BlockInfo) {
3040
3018
$ * JMETH . cr_outer($ outer . qast. cuid);
3041
- $ * CODEREFS . set_outer($ node . cuid, $ outer . qast. cuid);
3042
3019
}
3043
3020
3044
3021
# Always take ThreadContext and callsite descriptor as arguments.
@@ -3063,7 +3040,6 @@ class QAST::CompilerJAST {
3063
3040
3064
3041
# Stash lexical names.
3065
3042
my @ lex_names := $ block . lexical_names_by_type();
3066
- $ * CODEREFS . set_lexical_names($ node . cuid, | @ lex_names );
3067
3043
$ * JMETH . cr_olex(@ lex_names [$ RT_OBJ ]);
3068
3044
$ * JMETH . cr_ilex(@ lex_names [$ RT_INT ]);
3069
3045
$ * JMETH . cr_nlex(@ lex_names [$ RT_NUM ]);
0 commit comments