Displaying 2 results from an estimated 2 matches for "swfdec_as_super_replac".
Did you mean:
swfdec_as_super_replace
2007 Nov 14
0
7 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h
..._get_size (cx);
- swfdec_as_function_call (fun, thisp, n_args, NULL, NULL);
+ frame = swfdec_as_function_call_no_preload (fun, thisp, n_args, NULL, NULL);
+ if (frame == NULL)
+ return NULL;
if (SWFDEC_IS_AS_SUPER (fun)) {
SWFDEC_LOG ("replacing super object on frame");
- swfdec_as_super_replace (SWFDEC_AS_SUPER (fun), NULL);
+ swfdec_as_super_new_chain (frame, SWFDEC_AS_SUPER (fun), NULL);
}
- return TRUE;
+ return frame;
error:
n_args += 2;
@@ -834,7 +838,7 @@ error:
n_args = swfdec_as_stack_get_size (cx);
swfdec_as_stack_pop_n (cx, n_args);
SWFDEC_AS_VALUE_SET_...
2007 Jul 07
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h libswfdec/swfdec_as_with.c test/trace
...) {
- SWFDEC_LOG ("replacing super object on frame");
- SWFDEC_AS_SUPER (cx->frame->super)->object = SWFDEC_AS_SUPER (frame->super)->object->prototype;
- }
+ if (SWFDEC_IS_AS_SUPER (fun)) {
+ SWFDEC_LOG ("replacing super object on frame");
+ swfdec_as_super_replace (SWFDEC_AS_SUPER (fun), NULL);
}
return TRUE;
@@ -631,8 +629,7 @@ swfdec_action_call_function (SwfdecAsCon
SWFDEC_AS_VALUE_SET_NULL (thisp);
SWFDEC_AS_VALUE_SET_UNDEFINED (fun);
}
- if (!swfdec_action_call (cx, n_args, SWFDEC_AS_VALUE_IS_OBJECT (fun) &&
- SWFDEC_IS_A...