Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Final code tweaks to support Parrot and JVM.
Still need to get proper build/runner stuff in place for JVM, but that
should be all that's needed now.
  • Loading branch information
jnthn committed Oct 3, 2013
1 parent e014aaf commit 33b17a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions bin/perl6-debug.nqp
Expand Up @@ -451,6 +451,11 @@ class Perl6::Debugger is Perl6::Compiler {
}

sub MAIN(*@ARGS) {
# XXX Parrot compat hack.
if nqp::islist(@ARGS[0]) {
@ARGS := @ARGS[0];
}

# Initialize dynops.
nqp::p6init();

Expand Down
4 changes: 2 additions & 2 deletions lib/Debugger/UI/CommandLine.pm
Expand Up @@ -679,7 +679,7 @@ my $CUR_EX;
if DebugState.should_break_on_throw() {
$IN_THROWN = 1;
$CUR_EX = $e;
pir::perl6_invoke_catchhandler__vPP(&thrown, $vm_ex);
nqp::p6invokehandler(&thrown, $vm_ex);
$IN_THROWN = 0;
}
}
Expand Down Expand Up @@ -714,7 +714,7 @@ sub thrown(|) {
my Mu $p6comp := nqp::getcomp('perl6');
$p6comp.HOW.find_method($p6comp, 'handle-exception').wrap(-> | {
my Mu $vm_ex := nqp::atpos(nqp::p6argvmarray(), 1);
pir::perl6_invoke_catchhandler__vPP(&unhandled, $vm_ex);
nqp::p6invokehandler(&unhandled, $vm_ex);
});
sub unhandled(|) {
$IN_UNHANDLED = 1;
Expand Down

0 comments on commit 33b17a7

Please sign in to comment.