Skip to content

Commit ef5f94f

Browse files
committed
use parrot op to switch to the profiling runcore
1 parent 3e87ffd commit ef5f94f

File tree

3 files changed

+5
-29
lines changed

3 files changed

+5
-29
lines changed

src/HLL/Compiler.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ class HLL::Compiler {
200200
method eval($code, *@args, *%adverbs) {
201201
my $output;
202202

203-
my $old_runcore := pir::nqp_get_runcore__s();
203+
my $old_runcore := pir::interpinfo__si(pir::const::INTERPINFO_CURRENT_RUNCORE);
204204
if (%adverbs<profile-compile>) {
205-
pir::nqp_set_runcore__vs("subprof_hll");
205+
pir::set_runcore__vs("subprof_hll");
206206
}
207207
$output := self.compile($code, |%adverbs);
208208

@@ -214,13 +214,13 @@ class HLL::Compiler {
214214
}
215215

216216
if (%adverbs<profile>) {
217-
pir::nqp_set_runcore__vs("subprof_hll");
217+
pir::set_runcore__vs("subprof_hll");
218218
}
219219
pir::trace(%adverbs<trace>);
220220
$output := $output(|@args);
221221
pir::trace(0);
222222
}
223-
pir::nqp_set_runcore__vs($old_runcore);
223+
pir::set_runcore__vs($old_runcore);
224224

225225
$output;
226226
}

src/ops/nqp.ops

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,30 +1798,6 @@ inline op nqp_radix(out PMC, in INT, in STR, in INT, in INT) :base_core {
17981798

17991799
/*
18001800

1801-
=item nqp_get_runcore()
1802-
1803-
Returns the name of the current runcore.
1804-
1805-
=item nqp_set_runcore(name)
1806-
1807-
Switches parrot's runcore to the specified one.
1808-
1809-
=cut
1810-
1811-
*/
1812-
1813-
inline op nqp_get_runcore(out STR) :base_core {
1814-
$1 = interp->run_core->name;
1815-
}
1816-
1817-
1818-
inline op nqp_set_runcore(in STR) :flow {
1819-
Parrot_runcore_switch(interp, $1);
1820-
restart NEXT();
1821-
}
1822-
1823-
/*
1824-
18251801
=item inline op is_uprop(out INT, in STR, in STR, in INT)
18261802

18271803
Sets a true value in $1 if character $4 in string $3 has the unicode property

tools/build/PARROT_REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
RELEASE_3_10_0-30-ga8cb7da
1+
RELEASE_3_10_0-77-g6081fbd

0 commit comments

Comments
 (0)