Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use getinterp instead of new ParrotInterpreter to improve performance…
… (part 2...missed some!)
  • Loading branch information
jnthn committed May 6, 2009
1 parent a40974a commit 45ddf59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/builtins/eval.pir
Expand Up @@ -170,7 +170,7 @@ itself can be found in src/builtins/control.pir.
import_ns = get_hll_namespace
goto got_import_ns
use_caller_ns:
$P0 = new 'ParrotInterpreter'
$P0 = getinterp
$P0 = $P0['sub'; 1]
import_ns = $P0.'get_namespace'()
got_import_ns:
Expand Down
6 changes: 3 additions & 3 deletions src/builtins/guts.pir
Expand Up @@ -1261,7 +1261,7 @@ Internal helper method to create a role with a single parameterless variant.
.return(role)
.end
.sub '!create_simple_role_helper'
$P0 = new 'ParrotInterpreter'
$P0 = getinterp
$P0 = $P0['sub']
$P0 = getprop '$!metarole', $P0
.return ($P0)
Expand Down Expand Up @@ -1516,7 +1516,7 @@ Loads any existing values of state variables for a block.
.sub '!state_var_init'
.local pmc lexpad, state_store, names_it
$P0 = new 'ParrotInterpreter'
$P0 = getinterp
lexpad = $P0['lexpad'; 1]
$P0 = $P0['sub'; 1]
state_store = getprop '$!state_store', $P0
Expand Down Expand Up @@ -1546,7 +1546,7 @@ initialized already.

.sub '!state_var_inited'
.param string name
$P0 = new 'ParrotInterpreter'
$P0 = getinterp
$P0 = $P0['sub'; 1]
$P0 = getprop '$!state_store', $P0
$P0 = $P0[name]
Expand Down

0 comments on commit 45ddf59

Please sign in to comment.