File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ class HLL::World {
48
48
# XXX LEGACY
49
49
has % ! addr_to_slot ;
50
50
51
- method new (: $ handle ! , : $ description = ' <unknown>' ) {
52
- my $ obj := self . CREATE();
53
- $ obj . BUILD(: handle($ handle ), : description($ description ));
54
- $ obj
55
- }
56
-
57
51
method BUILD (: $ handle ! , : $ description ! ) {
58
52
# Initialize attributes.
59
53
$ ! sc := pir::nqp_create_sc__PS($ handle );
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ class NQP::World is HLL::World {
20
20
# Mapping of sub IDs to SC indexes of code stubs.
21
21
has % ! code_stub_sc_idx ;
22
22
23
+ method BUILD (* % opts ) {
24
+ @ ! BLOCKS := nqp ::list();
25
+ % ! code_objects_to_fix_up := nqp ::hash();
26
+ % ! code_object_fixup_list := nqp ::hash();
27
+ % ! code_stub_sc_idx := nqp ::hash();
28
+ }
29
+
23
30
# Creates a new lexical scope and puts it on top of the stack.
24
31
method push_lexpad ($/ ) {
25
32
# Create pad, link to outer and add to stack.
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class QAST::Block is QAST::Node {
29
29
}
30
30
31
31
method symbol ($ name , * % attrs ) {
32
+ % ! symbol := nqp ::hash() if nqp ::isnull(% ! symbol );
32
33
if % attrs {
33
34
% ! symbol {$ name } := % ! symbol {$ name } // {};
34
35
for % attrs {
@@ -39,6 +40,7 @@ class QAST::Block is QAST::Node {
39
40
}
40
41
41
42
method symtable () {
43
+ % ! symbol := nqp ::hash() if nqp ::isnull(% ! symbol );
42
44
% ! symbol
43
45
}
44
46
}
You can’t perform that action at this time.
0 commit comments