search for: endsp

Displaying 4 results from an estimated 4 matches for "endsp".

Did you mean: ends
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...n); *rval = JSVAL_VOID; fp = cx->fp; /* set up the script */ @@ -506,9 +769,13 @@ swfdec_script_interpret (SwfdecScript *s spec->name, spec->remove, fp->sp - fp->spbase); goto internal_error; } - if (fp->sp + spec->add - MAX (spec->remove, 0) > endsp) { - SWFDEC_ERROR ("FIXME: implement stack expansion, we got an overflow"); - goto internal_error; + if (spec->add < 0) { + action = endsp - fp->sp; + } else { + if (fp->sp + spec->add - MAX (spec->remove, 0) > endsp) { + SWFDEC_ERROR ("...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
..., swfdec_action_define_function } }, [0x8f] = { "Try", NULL }, /* version 5 */ [0x94] = { "With", NULL }, @@ -2560,7 +2581,10 @@ swfdec_script_interpret (SwfdecScript *s guint8 *startpc, *pc, *endpc, *nextpc; JSBool ok = JS_TRUE; void *mark; - jsval *startsp, *endsp, *checksp; + jsval *startsp; +#ifndef G_DISABLE_ASSERT + jsval *checksp; +#endif int stack_check; guint action, len; guint8 *data; @@ -2636,8 +2660,8 @@ swfdec_script_interpret (SwfdecScript *s goto out; } fp->spbase = startsp; + fp->spend = startsp + STACKSIZE; fp-&...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...dec_action_call_method } }, [0x53] = { "NewMethod", NULL }, /* version 6 */ [0x54] = { "InstanceOf", NULL }, @@ -726,7 +803,7 @@ swfdec_script_interpret (SwfdecScript *s guint8 *startpc, *pc, *endpc, *nextpc; JSBool ok = JS_TRUE; void *mark; - jsval *startsp, *endsp; + jsval *startsp, *endsp, *checksp; int stack_check; guint action, len; guint8 *data; @@ -800,6 +877,8 @@ swfdec_script_interpret (SwfdecScript *s goto internal_error; } if (spec->add < 0) { + /* HACK FIXME: if added args are -1, we pass the number of free spa...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...dec_action_call_method } }, [0x53] = { "NewMethod", NULL }, /* version 6 */ [0x54] = { "InstanceOf", NULL }, @@ -726,7 +803,7 @@ swfdec_script_interpret (SwfdecScript *s guint8 *startpc, *pc, *endpc, *nextpc; JSBool ok = JS_TRUE; void *mark; - jsval *startsp, *endsp; + jsval *startsp, *endsp, *checksp; int stack_check; guint action, len; guint8 *data; @@ -800,6 +877,8 @@ swfdec_script_interpret (SwfdecScript *s goto internal_error; } if (spec->add < 0) { + /* HACK FIXME: if added args are -1, we pass the number of free spa...