Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another round of pir:: => nqp::.
  • Loading branch information
jnthn committed Feb 24, 2013
1 parent a452806 commit 1346d6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/NQP/Grammar.pm
Expand Up @@ -11,8 +11,8 @@ grammar NQP::Grammar is HLL::Grammar {
# one universal KnowHOW from the 6model core, and an attribute
# meta-object to go with it.
my %*HOW;
%*HOW<knowhow> := pir::get_knowhow__P();
%*HOW<knowhow-attr> := pir::get_knowhow_attribute__P();
%*HOW<knowhow> := nqp::knowhow();
%*HOW<knowhow-attr> := nqp::knowhowattr();

# Serialization context builder - keeps track of objects that
# cross the compile-time/run-time boundary that are associated
Expand Down
8 changes: 4 additions & 4 deletions src/NQP/World.pm
Expand Up @@ -251,7 +251,7 @@ class NQP::World is HLL::World {
nqp::bindattr($_, %!code_object_types{$subid}, '$!do', nqp::clone($compiled[$i]));
nqp::bindattr($_, %!code_object_types{$subid}, '$!clone_callback', nqp::null());
}
pir::setprop__vPsP($compiled[$i], 'STATIC_CODE_REF', $compiled[$i]);
nqp::markcodestatic($compiled[$i]);
self.update_root_code_ref(%!code_stub_sc_idx{$subid}, $compiled[$i]);

# Clear up the fixup statements.
Expand Down Expand Up @@ -283,8 +283,8 @@ class NQP::World is HLL::World {
nqp::setcodename($dummy, $name);

# Tag it as a static code ref and add it to the root code refs set.
pir::setprop__vPsP($dummy, 'STATIC_CODE_REF', $dummy);
pir::setprop__vPsP($dummy, 'COMPILER_STUB', $dummy);
nqp::markcodestatic($dummy);
nqp::markcodestub($dummy);
$code_ref_idx := self.add_root_code_ref($dummy, $past);
%!code_stub_sc_idx{$past.cuid()} := $code_ref_idx;
$past<compile_time_dummy> := $dummy;
Expand All @@ -299,7 +299,7 @@ class NQP::World is HLL::World {
%!code_objects_to_fix_up{$past.cuid()}.push($code_obj);
nqp::bindattr($code_obj, $code_type, '$!clone_callback', nqp::null());
my $do := nqp::getattr($code_obj, $code_type, '$!do');
pir::setprop__vPsP($do, 'COMPILER_STUB', $do);
nqp::markcodestub($do);
}
nqp::bindattr($code_obj, $code_type, '$!clone_callback', $cb);
nqp::push(@!clearup_tasks, sub () {
Expand Down
2 changes: 1 addition & 1 deletion src/QRegex/P5Regex/Grammar.nqp
Expand Up @@ -9,7 +9,7 @@ class QRegex::P5Regex::World is HLL::World {
nqp::setcodename($dummy, $name);

# Tag it as a static code ref and add it to the root code refs set.
pir::setprop__vPsP($dummy, 'STATIC_CODE_REF', $dummy);
nqp::markcodestatic($dummy);
self.add_root_code_ref($dummy, $past);

# Create code object.
Expand Down
2 changes: 1 addition & 1 deletion src/QRegex/P6Regex/Grammar.nqp
Expand Up @@ -9,7 +9,7 @@ class QRegex::P6Regex::World is HLL::World {
nqp::setcodename($dummy, $name);

# Tag it as a static code ref and add it to the root code refs set.
pir::setprop__vPsP($dummy, 'STATIC_CODE_REF', $dummy);
nqp::markcodestatic($dummy);
self.add_root_code_ref($dummy, $past);

# Create code object.
Expand Down

0 comments on commit 1346d6e

Please sign in to comment.