Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updates to run on latest NQP.
  • Loading branch information
jnthn committed Apr 14, 2013
1 parent b5bdbe4 commit 452a072
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Perl6/World.pm
Expand Up @@ -1230,7 +1230,8 @@ class Perl6::World is HLL::World {
:compilation_mode(0),
$wrapper
);
my $precomp := nqp::getcomp('perl6').compile($compunit, :from<optimize>);
my $precomp := nqp::getcomp('perl6').compile($compunit,
:from<optimize>, :compunit_ok(1));
$precomp[0].get_lexinfo.set_static_lexpad($slp);
$precomp();

Expand Down
6 changes: 3 additions & 3 deletions src/core/control.pm
Expand Up @@ -151,9 +151,9 @@ multi sub eval(Str $code, :$lang = 'perl6', PseudoStash :$context) {
my $compiler := nqp::getcomp($lang);
X::Eval::NoSuchLang.new(:$lang).throw
if nqp::isnull($compiler);
my $pbc := $compiler.compile($code, :outer_ctx($eval_ctx), :global(GLOBAL));
nqp::atpos($pbc, 0).set_outer_ctx($eval_ctx);
$pbc();
my $compiled := $compiler.compile($code, :outer_ctx($eval_ctx), :global(GLOBAL));
nqp::forceouterctx(nqp::getattr($compiled, ForeignCode, '$!do'), $eval_ctx);
$compiled();
}


Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2013.03-15-g5104c2e
2013.03-27-gd46b465

0 comments on commit 452a072

Please sign in to comment.