search for: js_invok

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

Did you mean: js_invoke
2006 May 02
9
Visual Migration Design Tool
For a really long time, I''ve been using DBDesigner from FabForce.net. For those of your who''ve never used it, its a freeware visual entity-relationship diagram tool, which allows you to make database designs visually instead of in SQL DDL. You can then use it to generate the SQL to make your databse design into reality, or even run a "synchronize" to make any
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
...to_string (cx, cx->fp->sp[-1]); + cx->fp->sp--; + if (bytes == NULL) + return JS_TRUE; + + swfdec_player_trace (player, bytes); + return JS_TRUE; +} + +/** + * swfdec_action_invoke: + * @cx: the #SwfdecAsContext + * @n_args: number of arguments + * + * This function is similar to js_Invoke, however it uses a reversed stack + * order. sp[-1] has to be the function to call, sp[-2] will be the object the + * function is called on, sp[-3] is the first argument, followed by the rest of + * the arguments. The function removes all of these argumends from the stack + * and pushes the retu...
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
...x->fp->sp[-1]); + cx->fp->sp--; if (bytes == NULL) return JS_TRUE; @@ -333,6 +334,82 @@ swfdec_action_trace (JSContext *cx, guin return JS_TRUE; } +/** + * swfdec_action_invoke: + * @cx: the #JSContext + * @n_args: number of arguments + * + * This function is similar to js_Invoke, however it uses a reversed stack + * order. sp[-1] has to be the function to call, sp[-2] will be the object the + * function is called on, sp[-3] is the first argument, followed by the rest of + * the arguments. The function reorders the stack on success and pushes the + * return value on top....
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...this makes speedball.swf work again diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 537fced..1decae7 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -359,23 +359,26 @@ swfdec_action_trace (JSContext *cx, guin * This function is similar to js_Invoke, however it uses a reversed stack * order. sp[-1] has to be the function to call, sp[-2] will be the object the * function is called on, sp[-3] is the first argument, followed by the rest of - * the arguments. The function reorders the stack on success and pushes the - * return value on top....
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
...* @newp: pointer to variable that will take the created object or NULL on + * failure + * + * Constructs a JSObject for the given @constructor, if it really is a + * constructor. + * <note>The object is only constructed, the constructor is not called. + * You can easily do this with JS_Invoke() later.</note> + * + * Returns: %JS_TRUE on success or %JS_FALSE on OOM. + **/ +JSBool +swfdec_js_construct_object (JSContext *cx, const JSClass *clasp, + jsval constructor, JSObject **newp) +{ + JSObject *object; + jsval proto; + + g_return_val_if_fail (newp != NULL, JS_FALSE); + +...
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
...* @newp: pointer to variable that will take the created object or NULL on - * failure - * - * Constructs a JSObject for the given @constructor, if it really is a - * constructor. - * <note>The object is only constructed, the constructor is not called. - * You can easily do this with JS_Invoke() later.</note> - * - * Returns: %JS_TRUE on success or %JS_FALSE on OOM. - **/ -JSBool -swfdec_js_construct_object (JSContext *cx, const JSClass *clasp, - jsval constructor, JSObject **newp) -{ - JSObject *object; - jsval proto; - - g_return_val_if_fail (newp != NULL, JS_FALSE); - -...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...includes some fixes like implementing the function with name case diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index c398e62..b172ec6 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -387,6 +387,33 @@ swfdec_action_call (JSContext *cx, guint return js_Invoke (cx, n_args, flags); } +/* FIXME: lots of overlap with swfdec_action_call_method */ +static JSBool +swfdec_action_call_function (JSContext *cx, guint action, const guint8 *data, guint len) +{ + JSStackFrame *fp = cx->fp; + const char *s; + guint32 n_args; + JSObject *obj; + jsval fun; +...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...njamin Otte <otte@gnome.org> Date: Tue Feb 13 21:15:37 2007 +0100 swf may be used uninitialized in this function diff --git a/libswfdec/js/jsinterp.c b/libswfdec/js/jsinterp.c index 910087a..ab095f6 100644 --- a/libswfdec/js/jsinterp.c +++ b/libswfdec/js/jsinterp.c @@ -807,6 +807,7 @@ js_Invoke(JSContext *cx, uintN argc, uin } fun = NULL; script = NULL; + swf = NULL; minargs = nvars = 0; /* Try a call or construct native object op. */ diff-tree b3f04131da03829352ae315b2986ecda634c58c9 (from 319fb2b1931124bc32607519c26c50d7318236a4) Author: B...
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
...includes some fixes like implementing the function with name case diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index c398e62..b172ec6 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -387,6 +387,33 @@ swfdec_action_call (JSContext *cx, guint return js_Invoke (cx, n_args, flags); } +/* FIXME: lots of overlap with swfdec_action_call_method */ +static JSBool +swfdec_action_call_function (JSContext *cx, guint action, const guint8 *data, guint len) +{ + JSStackFrame *fp = cx->fp; + const char *s; + guint32 n_args; + JSObject *obj; + jsval fun; +...