search for: storeregist

Displaying 15 results from an estimated 15 matches for "storeregist".

Did you mean: storeregister
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
...> + <Trace/> + <DeclareFunction2 name="foo" argc="0" regc="0"> + <actions> + <PushData> + <items> + <StackString value="hi"/> + </items> + </PushData> + <StoreRegister reg="0"/> + <StoreRegister reg="1"/> + <StoreRegister reg="2"/> + <StoreRegister reg="3"/> + <StoreRegister reg="4"/> + <StoreRegister reg="5"/> + <StoreRegister reg...
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...c_action_define_local2, swfdec_action_define_local2 } }, [0x42] = { "InitArray", NULL }, diff-tree 1abcc041eb03537f5f95ff42e3feada49b90d5a4 (from cddfdb3c4ca0782b1d9e9c97fabf64a024120762) Author: Benjamin Otte <otte@gnome.org> Date: Fri Feb 16 10:04:37 2007 +0100 implement StoreRegister and pushing registers in ActionPush diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 54913b2..8859440 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -124,6 +124,15 @@ swfdec_constant_pool_get_area (SwfdecScr /*** SUPPORT FUNCTIONS ***/ +sta...
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
...> + <Trace/> + <DeclareFunction2 name="foo" argc="0" regc="0"> + <actions> + <PushData> + <items> + <StackString value="hi"/> + </items> + </PushData> + <StoreRegister reg="0"/> + <StoreRegister reg="1"/> + <StoreRegister reg="2"/> + <StoreRegister reg="3"/> + <StoreRegister reg="4"/> + <StoreRegister reg="5"/> + <StoreRegister reg...
2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...@@ -2245,7 +2245,7 @@ const SwfdecActionSpec swfdec_as_actions [0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url } }, #endif /* version 5 */ - [0x87] = { "StoreRegister", swfdec_action_print_store_register, 1, 1, { NULL, NULL, swfdec_action_store_register, swfdec_action_store_register, swfdec_action_store_register } }, + [SWFDEC_AS_ACTION_STORE_REGISTER] = { "StoreRegister", swfdec_action_print_store_register, 1, 1, { NULL, NULL, swfdec_action_st...
2007 Jan 18
0
Branch 'interpreter' - 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...rame }, + [0x81] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, { swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame } }, [0x83] = { "GetURL", NULL }, /* version 5 */ [0x87] = { "StoreRegister", NULL }, [0x88] = { "ConstantPool", NULL }, /* version 3 */ - [0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame }, + [0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...S_ACTION_GOTO_FRAME] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, swfdec_action_goto_frame, 1 }, + [SWFDEC_AS_ACTION_GET_URL] = { "GetURL", swfdec_action_print_get_url, 0, 0, swfdec_action_get_url, 1 }, /* version 5 */ [SWFDEC_AS_ACTION_STORE_REGISTER] = { "StoreRegister", swfdec_action_print_store_register, 1, 1, swfdec_action_store_register, 5 }, [SWFDEC_AS_ACTION_CONSTANT_POOL] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, swfdec_action_constant_pool, 5 }, + [SWFDEC_AS_ACTION_STRICT_MODE] = { "StrictMode", NULL, -1,...
2007 Oct 23
0
6 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_flash_security.c
...e, swfdec_action_bitwise } }, [SWFDEC_AS_ACTION_BIT_OR] = { "BitOr", NULL, 2, 1, { NULL, NULL, swfdec_action_bitwise, swfdec_action_bitwise, swfdec_action_bitwise } }, @@ -2884,6 +2885,7 @@ const SwfdecActionSpec swfdec_as_actions[256] = { [SWFDEC_AS_ACTION_STORE_REGISTER] = { "StoreRegister", swfdec_action_print_store_register, 1, 1, { NULL, NULL, swfdec_action_store_register, swfdec_action_store_register, swfdec_action_store_register } }, [SWFDEC_AS_ACTION_CONSTANT_POOL] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_const...
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
..., &obj, &pobj, &prop)) + return JS_FALSE; + if (!pobj) + return JS_TRUE; + return JS_DeleteProperty (cx, pobj, name); +} + +static void +swfdec_action_store_register (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + if (len != 1) { + SWFDEC_ERROR ("StoreRegister action requires a length of 1, but got %u", len); + return JS_FALSE; + } + if (!swfdec_action_has_register (cx, *data)) { + SWFDEC_ERROR ("Cannot store into register %u, not enough registers", (guint) *data); + return JS_FALSE; + } + cx->fp->vars[*data] = cx->...
2007 Apr 04
0
Branch 'as' - 9 commits - 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_stack.c libswfdec/swfdec_as_stack.h
...n) { @@ -2441,10 +2432,10 @@ const SwfdecActionSpec swfdec_as_actions [0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url } }, /* version 5 */ [0x87] = { "StoreRegister", swfdec_action_print_store_register, 1, 1, { NULL, NULL, swfdec_action_store_register, swfdec_action_store_register, swfdec_action_store_register } }, - [0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_co...
2007 Jan 24
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_script.c test/swfdec_out.c test/swfdec_out.h test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h
...wfdec_action_goto_frame } }, - [0x83] = { "GetURL", NULL }, + [0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url, swfdec_action_get_url } }, /* version 5 */ [0x87] = { "StoreRegister", NULL }, [0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } }, diff-tree e0270bcea5766d30ae6eeb7f8b0f0ef062f121f4 (from 6efabb680e16b9144d8b4e880c18396861190d6...
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
...or -1 for dynamic */ SwfdecActionExec exec[MAXSCRIPTVERSION - MINSCRIPTVERSION + 1]; /* array is for version 3, 4, 5, 6, 7+ */ } SwfdecActionSpec; @@ -270,7 +524,7 @@ static const SwfdecActionSpec actions[25 [0x83] = { "GetURL", NULL }, /* version 5 */ [0x87] = { "StoreRegister", NULL }, - [0x88] = { "ConstantPool", NULL }, + [0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } }, /* version 3 */ [0x8a] = { "WaitForFr...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...de functions add swfscript round the width and height instead of just casting add another test for the width/height changes fix invalid code that caused crashes when parsing kerning tables implement DefineFunction2 partially implement ActionDelete implement StoreRegister and pushing registers in ActionPush implement ActionModulo make DefineFunction2 work use this as parent in DefineFunction add 2 tests for function scopes Add swfdec_player_set_loader_with_variables stub add missing print function for GetURL2 add -_. to no...
2007 Apr 12
0
Branch 'as' - 15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...wfdec_as_frame_set_target (cx->frame, SWFDEC_AS_VALUE_GET_OBJECT (val)); } +#if 0 static void swfdec_action_start_drag (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { @@ -1858,17 +1836,19 @@ swfdec_action_print_store_register (guin } return g_strdup_printf ("StoreRegister %u", (guint) *data); } +#endif static char * swfdec_action_print_set_target (guint action, const guint8 *data, guint len) { if (!memchr (data, 0, len)) { SWFDEC_ERROR ("SetTarget action does not specify a string"); - return JS_FALSE; + return NULL; } retur...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...de functions add swfscript round the width and height instead of just casting add another test for the width/height changes fix invalid code that caused crashes when parsing kerning tables implement DefineFunction2 partially implement ActionDelete implement StoreRegister and pushing registers in ActionPush implement ActionModulo make DefineFunction2 work use this as parent in DefineFunction add 2 tests for function scopes Add swfdec_player_set_loader_with_variables stub add missing print function for GetURL2 add -_. to no...
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
...er", compile_comparison }, - { 0x68, "StringGreater", NULL }, - /* version 7 */ - { 0x69, "Extends", NULL }, - - /* version 3 */ - { 0x81, "GotoFrame", compile_goto_frame }, - { 0x83, "GetURL", compile_get_url }, - /* version 5 */ - { 0x87, "StoreRegister", NULL }, - { 0x88, "ConstantPool", compile_constant_pool }, - /* version 3 */ - { 0x8a, "WaitForFrame", compile_wait_for_frame }, - { 0x8b, "SetTarget", compile_set_target }, - { 0x8c, "GotoLabel", compile_goto_label }, - /* version 4 */ - { 0x...