search for: swfdec_as_script_function_new

Displaying 9 results from an estimated 9 matches for "swfdec_as_script_function_new".

2007 Oct 10
0
2 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.h
..._as_interpret.c index 6ef4b23..907e01e 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -1844,9 +1844,9 @@ swfdec_action_define_function (SwfdecAsC /* see function-scope tests */ if (cx->version > 5) { /* FIXME: or original target? */ - fun = swfdec_as_script_function_new (frame->target, frame->scope_chain, script); + fun = swfdec_as_script_function_new (frame->original_target, frame->scope_chain, script); } else { - fun = swfdec_as_script_function_new (frame->target, NULL, script); + fun = swfdec_as_script_function_new (frame->original...
2007 Sep 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_scope.c libswfdec/swfdec_as_scope.h libswfdec/swfdec_as_script_function.c
...as_super.h" -#include "swfdec_as_with.h" #include "swfdec_debug.h" #include <errno.h> @@ -1742,12 +1741,9 @@ swfdec_action_define_function (SwfdecAsC /* see function-scope tests */ if (cx->version > 5) { /* FIXME: or original target? */ - fun = swfdec_as_script_function_new (frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame), frame->target, script); + fun = swfdec_as_script_function_new (frame->target, frame->scope_chain, script); } else { - SwfdecAsScope *scope = frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame); - while (scope...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...uot; #include "swfdec_as_context.h" #include "swfdec_as_frame_internal.h" +#include "swfdec_as_internal.h" #include "swfdec_as_stack.h" #include "swfdec_as_strings.h" #include "swfdec_debug.h" @@ -114,20 +115,26 @@ SwfdecAsFunction * swfdec_as_script_function_new (SwfdecAsScope *scope, SwfdecAsObject *target, SwfdecScript *script) { SwfdecAsValue val; - SwfdecAsFunction *fun; + SwfdecAsScriptFunction *fun; SwfdecAsObject *proto; + SwfdecAsContext *context; g_return_val_if_fail (SWFDEC_IS_AS_SCOPE (scope), NULL); g_return_val_if_fail (SWFDE...
2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...as_stack.h" #include "swfdec_debug.h" @@ -1266,12 +1267,12 @@ swfdec_action_define_function (SwfdecAsC } /* see function-scope tests */ if (cx->version > 5) { - fun = swfdec_as_function_new (frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame)); + fun = swfdec_as_script_function_new (frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame)); } else { SwfdecAsScope *scope = frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame); while (scope->next) scope = scope->next; - fun = swfdec_as_function_new (scope); + fun = swfdec_as_script_funct...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...), cx->frame->target); } if (swfdec_as_value_to_number (cx, swfdec_as_stack_peek (stack, 3))) { swfdec_as_stack_ensure_size (stack, 7); @@ -1494,12 +1465,13 @@ swfdec_action_define_function (SwfdecAsC } /* see function-scope tests */ if (cx->version > 5) { - fun = swfdec_as_script_function_new (frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame)); + /* FIXME: or original target? */ + fun = swfdec_as_script_function_new (frame->scope ? frame->scope : SWFDEC_AS_SCOPE (frame), frame->target); } else { SwfdecAsScope *scope = frame->scope ? frame->scope :...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...Fri Aug 17 17:33:29 2007 +0200 define scope and target earlier diff --git a/libswfdec/swfdec_as_script_function.c b/libswfdec/swfdec_as_script_function.c index f8b6ad2..3ab7064 100644 --- a/libswfdec/swfdec_as_script_function.c +++ b/libswfdec/swfdec_as_script_function.c @@ -124,6 +124,8 @@ swfdec_as_script_function_new (SwfdecAsS SWFDEC_TYPE_AS_SCRIPT_FUNCTION, sizeof (SwfdecAsScriptFunction)); if (fun == NULL) return NULL; + SWFDEC_AS_SCRIPT_FUNCTION (fun)->scope = scope; + SWFDEC_AS_SCRIPT_FUNCTION (fun)->target = target; proto = swfdec_as_object_new (SWFDEC_AS_OBJECT (scope)->conte...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...15:53:06 2007 +0300 Set script functions properties' flags diff --git a/libswfdec/swfdec_as_script_function.c b/libswfdec/swfdec_as_script_function.c index 5800dbd..1abf45c 100644 --- a/libswfdec/swfdec_as_script_function.c +++ b/libswfdec/swfdec_as_script_function.c @@ -138,12 +138,16 @@ swfdec_as_script_function_new (SwfdecAsS if (proto == NULL) return NULL; SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); - swfdec_as_object_set_variable (SWFDEC_AS_OBJECT (fun), SWFDEC_AS_STR_prototype, &val); + swfdec_as_object_set_variable_and_flags (SWFDEC_AS_OBJECT (fun), + SWFDEC_AS_STR_prototype, &...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); } diff --git a/libswfdec/swfdec_as_script_function.c b/libswfdec/swfdec_as_script_function.c index 7623b7e..5800dbd 100644 --- a/libswfdec/swfdec_as_script_function.c +++ b/libswfdec/swfdec_as_script_function.c @@ -133,15 +133,17 @@ swfdec_as_script_function_new (SwfdecAsS fun->script = script; fun->target = target; swfdec_as_object_add (SWFDEC_AS_OBJECT (fun), context, sizeof (SwfdecAsScriptFunction)); - swfdec_as_function_set_constructor (SWFDEC_AS_FUNCTION (fun)); /* set prototype */ - proto = swfdec_as_object_new (SWFDEC_AS_OBJECT (...
2007 Aug 26
0
Changes to 'refs/tags/0.5.2'
...fix warnings add test for registers set a somewhat sane default size 0 registers means 4 registers Merge branch 'master' of ssh://company at git.freedesktop.org/git/swfdec/swfdec Merge branch 'master' into vivi require passing the script to swfdec_as_script_function_new() change function creation procedure we have a handler more now... implement watch command add toString () for breakpoints port SwfdecDebugMovies to vivified (doesn't work yet) disable build of swfdebug unused variable ActionDelete and ActionDelet...