Skip to content

Commit

Permalink
frontend: fix -R trace
Browse files Browse the repository at this point in the history
trace is a seperate runcore, but misses a _init registration
function, we rather go through the slow runcore and check
then the trace flag.
Fixes the t/run/options.t breakage of the previous commit
  • Loading branch information
Reini Urban committed Mar 9, 2014
1 parent b1de450 commit 1da6c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/embed/api.c
@@ -1,5 +1,5 @@
/*
Copyright (C) 2010-2012, Parrot Foundation.
Copyright (C) 2010-2014, Parrot Foundation.
=head1 NAME
Expand Down Expand Up @@ -187,6 +187,8 @@ Parrot_api_set_runcore(Parrot_PMC interp_pmc, ARGIN(const char * corename),
else {
if (STREQ(corename, "slow") || STREQ(corename, "bounds"))
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, "slow"));
else if (STREQ(corename, "trace"))
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, "slow"));
else if (STREQ(corename, "fast")
|| STREQ(corename, "function")
|| STREQ(corename, "cgp")
Expand All @@ -202,8 +204,6 @@ Parrot_api_set_runcore(Parrot_PMC interp_pmc, ARGIN(const char * corename),
else if (STREQ(corename, "exec"))
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, corename));
#endif
else if (STREQ(corename, "trace"))
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, corename));
else if (STREQ(corename, "profiling"))
Parrot_runcore_switch(interp, Parrot_str_new_constant(interp, corename));
else if (STREQ(corename, "gc_debug"))
Expand Down
1 change: 1 addition & 0 deletions src/ops/set.ops
Expand Up @@ -178,6 +178,7 @@ Assign a new value $2, to PMC $1. Same as the equivalent B<set> opcodes.
=item B<assign>(invar PMC, invar PMC)

Assign a new value $2, to PMC $1 by copying the value.
Usually calls the set_pmc vtable method.

=item B<assign>(out STR, in STR)

Expand Down

0 comments on commit 1da6c62

Please sign in to comment.