Skip to content

Commit

Permalink
Start sketching out OSR handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 26, 2014
1 parent 5bbad46 commit 42d571b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/spesh/osr.c
@@ -1,5 +1,18 @@
#include "moar.h"

void MVM_spesh_osr(MVMThreadContext *tc) {
/* TODO */
MVMSpeshCandidate *specialized;

/* Ensure that we are in a position to specialize. */
if (!tc->cur_frame->caller)
return;
if (!tc->cur_frame->params.callsite->is_interned)
return;

/* Produce logging spesh candidate. */
specialized = MVM_spesh_candidate_setup(tc, tc->cur_frame->static_info,
tc->cur_frame->params.callsite, tc->cur_frame->params.args);
if (specialized) {
/* TODO: install. */
}
}

0 comments on commit 42d571b

Please sign in to comment.