Skip to content

Commit

Permalink
[js] Enable stuff for precompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed May 21, 2017
1 parent 786c511 commit 68974ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/CompUnit/Loader.pm
Expand Up @@ -43,7 +43,7 @@ class CompUnit::Loader is repr('Uninstantiable') {
my $handle := CompUnit::Handle.new;
my $*CTXSAVE := $handle;
my %*COMPILING := nqp::hash();
#?if moar
#?if !jvm
nqp::loadbytecodefh(nqp::getattr($file, IO::Handle, '$!PIO'), $file.path.Str);
#?endif
$handle
Expand Down
4 changes: 2 additions & 2 deletions src/core/CompUnit/PrecompilationRepository.pm
Expand Up @@ -67,10 +67,10 @@ class CompUnit::PrecompilationRepository::Default does CompUnit::PrecompilationR
method !load-handle-for-path(CompUnit::PrecompilationUnit $unit) {
my $preserve_global := nqp::ifnull(nqp::gethllsym('perl6', 'GLOBAL'), Mu);
if $*RAKUDO_MODULE_DEBUG -> $RMD { $RMD("Loading precompiled\n$unit") }
#?if moar
#?if !jvm
my $handle := CompUnit::Loader.load-precompilation-file($unit.bytecode-handle);
#?endif
#?if !moar
#?if jvm
my $handle := CompUnit::Loader.load-precompilation($unit.bytecode);
#?endif
nqp::bindhllsym('perl6', 'GLOBAL', $preserve_global);
Expand Down
5 changes: 5 additions & 0 deletions src/core/Process.pm
Expand Up @@ -25,6 +25,11 @@ Rakudo::Internals.REGISTER-DYNAMIC: '$*EXECUTABLE', {
nqp::execname()
// ($*VM.config<prefix> ~ '/bin/'
~ ($*VM.config<osname> eq 'MSWin32' ?? 'perl6-m.bat' !! 'perl6-m'))
#?endif
#?if js
nqp::execname()
// ($*VM.config<prefix> ~ '/bin/'
~ ($*VM.config<osname> eq 'MSWin32' ?? 'perl6-js.bat' !! 'perl6-js'))
#?endif
).IO;
}
Expand Down

0 comments on commit 68974ea

Please sign in to comment.