Skip to content

Commit 263e374

Browse files
committed
s/subid/cuid/
1 parent 8f9d295 commit 263e374

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/NQPQ/World.pm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class NQP::World is HLL::World {
88

99
# Set of code objects that need to be fixed up if dynamic compilation
1010
# takes place (that is, compiling parts of the program early during
11-
# compile time because they're needed at a BEGIN phase). Maps subid
12-
# to a list of code objects.
11+
# compile time because they're needed at a BEGIN phase). Maps per-
12+
# compilation unit ID to a list of code objects.
1313
has %!code_objects_to_fix_up;
1414

1515
# Mapping of QAST::Stmts node containing fixups, keyed by sub ID. If
@@ -253,7 +253,7 @@ class NQP::World is HLL::World {
253253
# Tag it as a static code ref and add it to the root code refs set.
254254
pir::setprop__vPsP($dummy, 'STATIC_CODE_REF', $dummy);
255255
$code_ref_idx := self.add_root_code_ref($dummy, $past);
256-
%!code_stub_sc_idx{$past.subid()} := $code_ref_idx;
256+
%!code_stub_sc_idx{$past.cuid()} := $code_ref_idx;
257257
$past<compile_time_dummy> := $dummy;
258258

259259
# Attach PAST as a property to the stub code.
@@ -263,10 +263,10 @@ class NQP::World is HLL::World {
263263
# routines. We need to handle their cloning and maintain the fixup
264264
# list.
265265
if $have_code_type {
266-
%!code_object_fixup_list{$past.subid()} := $fixups;
266+
%!code_object_fixup_list{$past.cuid()} := $fixups;
267267
if self.is_precompilation_mode() {
268268
pir::setprop__vPsP($dummy, 'CLONE_CALLBACK', sub ($orig, $clone, $code_obj) {
269-
%!code_objects_to_fix_up{$past.subid()}.push($code_obj);
269+
%!code_objects_to_fix_up{$past.cuid()}.push($code_obj);
270270
});
271271
}
272272
else {
@@ -286,7 +286,7 @@ class NQP::World is HLL::World {
286286
));
287287

288288
# Add to dynamic compilation fixup list.
289-
%!code_objects_to_fix_up{$past.subid()}.push($code_obj);
289+
%!code_objects_to_fix_up{$past.cuid()}.push($code_obj);
290290
});
291291
}
292292
}
@@ -328,7 +328,7 @@ class NQP::World is HLL::World {
328328
));
329329

330330
# Add it to the dynamic compilation fixup todo list.
331-
%!code_objects_to_fix_up{$past.subid()} := [$code_obj];
331+
%!code_objects_to_fix_up{$past.cuid()} := [$code_obj];
332332

333333
$code_obj
334334
}

0 commit comments

Comments
 (0)