Skip to content

Commit

Permalink
reorder op impl to match oplist
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemmen committed May 28, 2017
1 parent 40bb532 commit 68620c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/core/interp.c
Expand Up @@ -5115,6 +5115,11 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex
cur_op += 4;
goto NEXT;
}
OP(cpucores): {
GET_REG(cur_op, 0).i32 = MVM_platform_cpu_count();
cur_op += 2;
goto NEXT;
}
OP(sp_log):
if (tc->cur_frame->spesh_log_idx >= 0) {
MVM_ASSIGN_REF(tc, &(tc->cur_frame->static_info->common.header),
Expand Down Expand Up @@ -5633,11 +5638,6 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex
cur_op += 20;
goto NEXT;
}
OP(cpucores): {
GET_REG(cur_op, 0).i32 = MVM_platform_cpu_count();
cur_op += 2;
goto NEXT;
}
#if MVM_CGOTO
OP_CALL_EXTOP: {
/* Bounds checking? Never heard of that. */
Expand Down
1 change: 0 additions & 1 deletion src/core/oplist
Expand Up @@ -801,7 +801,6 @@ setdispatcherfor r(obj) r(obj)
getstrfromname w(str) r(str) :pure
indexic_s w(int64) r(str) r(str) r(int64) :pure
getport_sk w(int64) r(obj)

cpucores w(int64) :pure

# Spesh ops. Naming convention: start with sp_. Must all be marked .s, which
Expand Down

0 comments on commit 68620c8

Please sign in to comment.