Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add nqp::p6init() which initializes runtime.
Need a mechanism similar to Parrot dynops init for the JVM also.
  • Loading branch information
jnthn committed May 10, 2013
1 parent b24d10d commit aea68d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -80,10 +80,8 @@ my stub ForeignCode metaclass Perl6::Metamodel::ClassHOW { ... };
# We stick all the declarative bits inside of a BEGIN, so they get
# serialized.
BEGIN {
#?if parrot
# Ensure Rakudo dynops are initialized.
pir::rakudo_dynop_setup__v();
#?endif
# Ensure Rakudo runtime support is initialized.
nqp::p6init();

# class Mu { ... }
#?if parrot
Expand Down
1 change: 1 addition & 0 deletions src/vm/parrot/Perl6/Ops.nqp
Expand Up @@ -63,6 +63,7 @@ $ops.add_hll_pirop_mapping('nqp', 'p6parcel', 'perl6_parcel_from_rpa', 'PPP', :i
$ops.add_hll_pirop_mapping('nqp', 'p6isbindable', 'perl6_is_sig_bindable', 'IPP');
$ops.add_hll_pirop_mapping('nqp', 'p6trialbind', 'perl6_trial_bind_ct', 'IPPP');
$ops.add_hll_pirop_mapping('nqp', 'p6settypes', 'p6settypes', 'vP', :inlinable(1));
$ops.add_hll_pirop_mapping('nqp', 'p6init', 'rakudo_dynop_setup', 'v', :inlinable(1));

# Override defor to avoid v-table call.
$ops.add_hll_op('perl6', 'defor', :inlinable(1), -> $qastcomp, $op {
Expand Down

0 comments on commit aea68d2

Please sign in to comment.