Skip to content

Commit

Permalink
A KnowHOW really should publish a type check cache, so it at least ma…
Browse files Browse the repository at this point in the history
…tches itself.
  • Loading branch information
jnthn committed Feb 2, 2012
1 parent f3156d5 commit 3e8a06a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/6model/knowhow_bootstrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ static void compose(PARROT_INTERP, PMC *nci) {
PMC *capture = Parrot_pcc_get_signature(interp, CURRENT_CONTEXT(interp));
PMC *self = VTABLE_get_pmc_keyed_int(interp, capture, 0);
PMC *obj = VTABLE_get_pmc_keyed_int(interp, capture, 1);
STABLE(obj)->method_cache = ((KnowHOWREPRInstance *)PMC_data(self))->body.methods;
STABLE(obj)->mode_flags = METHOD_CACHE_AUTHORITATIVE;
STABLE(obj)->method_cache = ((KnowHOWREPRInstance *)PMC_data(self))->body.methods;
STABLE(obj)->mode_flags = METHOD_CACHE_AUTHORITATIVE;
STABLE(obj)->type_check_cache_length = 1;
STABLE(obj)->type_check_cache = mem_sys_allocate(sizeof(PMC *));
STABLE(obj)->type_check_cache[0] = obj;
unused = Parrot_pcc_build_call_from_c_args(interp, capture, "P", obj);
}

Expand Down

0 comments on commit 3e8a06a

Please sign in to comment.