search for: swfdecasstackiterator

Displaying 13 results from an estimated 13 matches for "swfdecasstackiterator".

2007 Jul 13
0
3 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...variables on + * it. These are local variables inside the executing function. So you can use + * functions such as swfdec_as_object_get_variable() to inspect them. + */ + +/** + * SwfdecAsFrame: + * + * the object used to represent an executing function. + */ + /*** STACK ITERATOR ***/ +/** + * SwfdecAsStackIterator: + * + * This is a struct used to walk the stack of a frame. It is supposed to be + * allocated on the stack. All of its members are private. + */ + SwfdecAsValue * swfdec_as_stack_iterator_init_arguments (SwfdecAsStackIterator *iter, SwfdecAsFrame *frame) { @@ -57,6 +87,23 @@ swfdec_as_stack_i...
2007 Jul 12
0
15 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt INSTALL libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.h
...c +++ b/player/swfdec_debug_stack.c @@ -71,15 +71,11 @@ swfdec_debug_stack_set_model (SwfdecDebu context= SWFDEC_AS_CONTEXT (debug->manager->player); frame = context->frame; if (frame) { - SwfdecAsValue *val = context->cur; - SwfdecAsStack *stack = context->stack; + SwfdecAsStackIterator siter; + SwfdecAsValue *val; guint i = 0; - while (val != frame->stack_begin) { - if (val == &stack->elements[0]) { - stack = stack->next; - val = &stack->elements[stack->used_elements]; - } - val--; + for (val = swfdec_as_stack_iterator_init (&am...
2007 Aug 21
0
Branch 'vivi' - 4 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_string.c vivified/core
...f --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index c5f9076..019380c 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -375,6 +375,7 @@ SwfdecAsFrame swfdec_as_frame_get_next swfdec_as_frame_get_function_name swfdec_as_frame_get_script +swfdec_as_frame_get_this SwfdecAsStackIterator swfdec_as_stack_iterator_init swfdec_as_stack_iterator_init_arguments diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index a9fe372..b7cb037 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -787,3 +787,20 @@ swfdec_as_frame_get_script (SwfdecAsF...
2007 Jul 30
0
10 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_super.c libswfdec/swfdec_video_movie_as.c test/trace
...(SwfdecAsFram void swfdec_as_frame_preload (SwfdecAsFrame *frame) { - SwfdecAsObject *object; + SwfdecAsObject *object, *args; guint i, current_reg = 1; SwfdecScript *script; - SwfdecAsValue val; + SwfdecAsValue val = { 0, }; const SwfdecAsValue *cur; SwfdecAsContext *context; SwfdecAsStackIterator iter; @@ -561,17 +561,30 @@ swfdec_as_frame_preload (SwfdecAsFrame * if (frame->script == NULL) return; - + /* setup */ object = SWFDEC_AS_OBJECT (frame); context = object->context; script = frame->script; - if (script->flags & SWFDEC_SCRIPT_PRELOAD_THIS) { -...
2007 Aug 03
0
Changes to 'refs/tags/0.5.1'
...so the _listeners don't have to be an array - we just need a length property use the right size when computing offsets fix global <=> local conversions to work with Stage changes when calling super() we're still constructing switch argument handling to use SwfdecAsStackIterator create arguments variable using a SwfdecAsStackIterator fix typo add test for argument preloading in registers use the right number of registers if not enoguh registers are available, push undefined add a test for how registers are handled reorganize swfdec...
2007 Aug 15
0
Branch 'vivi' - 13 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h vivified/core vivified/ui
...-sections.txt b/doc/swfdec-sections.txt index 69d7785..cf0e5b1 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -373,6 +373,7 @@ SWFDEC_TYPE_AS_NATIVE_FUNCTION <TITLE>SwfdecAsFrame</TITLE> SwfdecAsFrame swfdec_as_frame_get_next +swfdec_as_frame_get_function_name SwfdecAsStackIterator swfdec_as_stack_iterator_init swfdec_as_stack_iterator_init_arguments diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index 3a08819..0721022 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -743,3 +743,20 @@ swfdec_as_frame_get_next (SwfdecAsFra...
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
...t a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index cf0e5b1..c5f9076 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -374,6 +374,7 @@ SWFDEC_TYPE_AS_NATIVE_FUNCTION SwfdecAsFrame swfdec_as_frame_get_next swfdec_as_frame_get_function_name +swfdec_as_frame_get_script SwfdecAsStackIterator swfdec_as_stack_iterator_init swfdec_as_stack_iterator_init_arguments diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index 0721022..17f88cb 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -760,3 +760,20 @@ swfdec_as_frame_get_function_name (Sw...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...har *cur = slash_str; diff --git a/libswfdec/swfdec_as_frame.h b/libswfdec/swfdec_as_frame.h index 44caf87..17fdccf 100644 --- a/libswfdec/swfdec_as_frame.h +++ b/libswfdec/swfdec_as_frame.h @@ -50,6 +50,9 @@ SwfdecAsFrame * swfdec_as_frame_get_next SwfdecAsValue * swfdec_as_stack_iterator_init (SwfdecAsStackIterator * iter, SwfdecAsFrame * frame); +SwfdecAsValue * swfdec_as_stack_iterator_init_arguments + (SwfdecAsStackIterator * iter, + SwfdecAsFrame * frame); SwfdecAsValue * swfdec_as_stack_iterator_next (SwfdecAsStackIterator * iter); diff --git a/libswfdec/swfdec_as_frame_interna...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...pc = frame->pc; if (frame != context->frame) goto start; diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index c902406..c101b9c 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -203,16 +203,28 @@ swfdec_as_stack_iterator_next (SwfdecAsStackIterator *iter) typedef struct { const guint8 * start; /* start of block */ const guint8 * end; /* end of block (hitting this address will exit the block) */ - SwfdecAsFrameBlockFunc func; /* function to call when block is exited */ + SwfdecAsFrameBlockFunc func; /* function to call when block is...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
....c +++ b/libswfdec/swfdec_as_frame.c @@ -552,7 +552,7 @@ swfdec_as_frame_preload (SwfdecAsFrame * SwfdecAsObject *object, *args; guint i, current_reg = 1; SwfdecScript *script; - SwfdecAsValue val = { 0, }; + SwfdecAsValue val; const SwfdecAsValue *cur; SwfdecAsContext *context; SwfdecAsStackIterator iter; @@ -606,6 +606,7 @@ swfdec_as_frame_preload (SwfdecAsFrame * } /* set and preload argument variables */ + SWFDEC_AS_VALUE_SET_UNDEFINED (&val); cur = swfdec_as_stack_iterator_init_arguments (&iter, frame); for (i = 0; i < script->n_arguments; i++) { if (cur =...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...te at gnome.org> Date: Fri Jul 20 23:14:19 2007 +0100 add missing function diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index 930fbeb..5ad6dec 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -338,6 +338,7 @@ SwfdecAsFrame swfdec_as_frame_get_next SwfdecAsStackIterator swfdec_as_stack_iterator_init +swfdec_as_stack_iterator_init_arguments swfdec_as_stack_iterator_next <SUBSECTION Standard> swfdec_as_frame_get_type diff-tree 14010d91f34a35ff74b3ac6f04f06647450b5eb9 (from 93f5c8e89e875ae20e8ce882f82e6228a6bf9d0e) Author: Benjamin Otte <otte at gnome.or...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...e frame to initialize from + * + * Initializes a stack iterator to walk the arguments passed to the given @frame. See + * swfdec_as_stack_iterator_init() about suggested iterator usage. + * + * Returns: The value of the first argument + **/ SwfdecAsValue * swfdec_as_stack_iterator_init_arguments (SwfdecAsStackIterator *iter, SwfdecAsFrame *frame) { diff-tree 2253157314bf1e420b56212989d09b6c50d46e9c (from 8c33c1d42b579e7897fd0353e6e549543d289fa7) Author: Benjamin Otte <otte at gnome.org> Date: Wed Aug 1 17:02:59 2007 +0200 fix up docs build diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections...
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
...f --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index c5f9076..019380c 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -375,6 +375,7 @@ SwfdecAsFrame swfdec_as_frame_get_next swfdec_as_frame_get_function_name swfdec_as_frame_get_script +swfdec_as_frame_get_this SwfdecAsStackIterator swfdec_as_stack_iterator_init swfdec_as_stack_iterator_init_arguments diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index a9fe372..b7cb037 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -787,3 +787,20 @@ swfdec_as_frame_get_script (SwfdecAsF...