Displaying 5 results from an estimated 5 matches for "stack_check".
2005 Apr 19
1
[LLVMdev] Unwind example
...uot; ?
Thanks.
Here's the code:
%str_sp = internal constant [9 x sbyte] c"SP = %i\0A\00" ; <[9 x
sbyte]*> [#uses=1]
%str_msg = internal constant [15 x sbyte] c"Bottom'd Out!\0A\00"
implementation ; Functions:
declare int %printf(sbyte*, ...)
internal void %stack_check() {
entry:
%xyzzy = alloca int ; <int*> [#uses=1]
%spcheck.0 = cast int* %xyzzy to int
%spcheck.1 = setlt int %spcheck.0, -1080000000
br bool %spcheck.1, label %the_return, label %endif
endif:
%tmp.0 = getelementptr [9 x sbyte]* %str_sp, int 0, i...
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
...[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->sp = startsp;
- endsp = startsp + STACKSIZE;
/* Check for too much nesting, or too deep a C sta...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...g_free (script);
}
-#if 0
-JSBool
-swfdec_script_interpret (SwfdecScript *script, JSContext *cx, jsval *rval)
-{
- JSStackFrame *fp;
- guint8 *startpc, *pc, *endpc, *nextpc;
- JSBool ok = JS_TRUE;
- void *mark;
- jsval *startsp;
-#ifndef G_DISABLE_ASSERT
- jsval *checksp;
-#endif
- int stack_check;
- guint action, len;
- guint8 *data;
- guint version;
- const SwfdecActionSpec *spec;
-
- /* set up general stuff */
- swfdec_script_ref (script);
- version = EXTRACT_VERSION (script->version);
- *rval = JSVAL_VOID;
- fp = cx->fp;
- /* do the preloading */
- if (script->prelo...
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
...Method", 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 space on the stack
+ * instead of the action */...
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
...Method", 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 space on the stack
+ * instead of the action */...