search for: exception_value

Displaying 10 results from an estimated 10 matches for "exception_value".

2007 Oct 26
0
8 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c test/trace
...ception) { + trace (exception); +}; + +loadMovie ("FSCommand:quit", ""); commit 65fb16c53625ead227c6dfafd0d9da75a43b95a8 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sat Oct 27 02:13:01 2007 +0300 Rename context->throwing to exception and throw_value to exception_value diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 403e03d..663a15c 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -361,7 +361,7 @@ static void swfdec_as_context_do_mark (SwfdecAsContext *context) { swfdec_as_object_mark (contex...
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
...f (--try_data->ref_count > 0) - return; - if (!try_data->use_register) g_free (try_data->variable_name); g_free (try_data); @@ -2595,7 +2581,7 @@ swfdec_action_try_end_finally (SwfdecAsFrame *frame, gpointer data) if (!cx->exception) swfdec_as_context_throw (cx, exception_value); - swfdec_as_frame_pop_block (frame); + g_free (data); } static void @@ -2610,9 +2596,6 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data) cx = SWFDEC_AS_OBJECT (frame)->context; - swfdec_action_try_data_ref (try_data); - swfdec_as_frame_pop_block (frame); -...
2007 Oct 28
0
2 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...5c..8fcd976 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -864,8 +864,7 @@ start: pc = frame->pc; } if (context->exception) { - SWFDEC_ERROR ("Unhandled exception: %s", - swfdec_as_value_to_string (context, &context->exception_value)); + SWFDEC_ERROR ("Unhandled exception"); goto error; } if (check_block && (pc < frame->block_start || pc >= frame->block_end)) {
2013 Jul 22
0
[LLVMdev] Does nounwind have semantics?
On Sun, Jul 21, 2013 at 5:56 PM, Andrew Trick <atrick at apple.com> wrote: > Does 'nounwind' have semantics that inform optimization passes? It seems to in some cases, but not consistently. For example... > > int32_t foo(int32_t* ptr) { > int i = 0; > int result; > do { > bar(ptr); > result = *ptr; > bar(ptr); > } while (i++ <
2013 Jul 22
1
[LLVMdev] Does nounwind have semantics?
...can argue that the function still doesn't write memory, though I admit you could also argue that the only way we have to model this extra parameter is to say that the function writes memory. What is a bit more problematic is that there is then also an implicit control flow construct ("if exception_value == 1 then return 1; end if") after every call. If everything was explicit then the above code bar(ptr); result = *ptr; bar(ptr); would be exc = bar(ptr); if (exc) return 1; result = *ptr; exc = bar(ptr); if (exc) return 1; At this point it is clear that because bar is...
2013 Jul 22
6
[LLVMdev] Does nounwind have semantics?
Does 'nounwind' have semantics that inform optimization passes? It seems to in some cases, but not consistently. For example... int32_t foo(int32_t* ptr) { int i = 0; int result; do { bar(ptr); result = *ptr; bar(ptr); } while (i++ < *ptr); return result; } Say we have a front end that declares bar as... declare void @bar(i32*) readonly; So 'bar' is
2007 Oct 28
1
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_codec_gst.c test/trace
...e->blocks->len > 0) { frame->pc = frame->block_end; swfdec_as_frame_check_block (frame); pc = frame->pc; } if (context->exception) { - SWFDEC_ERROR ("Unhandled exception: %s", - swfdec_as_value_to_string (context, &context->exception_value)); - goto error; + swfdec_as_frame_handle_exception (frame); + if (frame != context->frame) + goto start; + continue; } if (check_block && (pc < frame->block_start || pc >= frame->block_end)) { SWFDEC_LOG ("code exited block"); d...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...if (swfdec_as_context_catch (cx, &val)) { // we got an exception while in catch block: - // create new block for finally, passing the exception - // clear exception from the context + // create new block for finally to pass on the exception + // jump to that block exception_value = g_malloc (sizeof (SwfdecAsValue)); *exception_value = val; @@ -2611,6 +2611,7 @@ swfdec_action_try_end_catch (SwfdecAsFrame *frame, gpointer data) swfdec_as_frame_push_block (frame, try_data->finally_start, try_data->finally_start + try_data->finally_size, swfdec_action_try...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...ntext.c +++ b/libswfdec/swfdec_as_context.c @@ -362,12 +362,16 @@ swfdec_as_context_mark_roots (gpointer key, gpointer value, gpointer data) static void swfdec_as_context_do_mark (SwfdecAsContext *context) { - swfdec_as_object_mark (context->global); - swfdec_as_value_mark (&context->exception_value); - swfdec_as_object_mark (context->Function); - swfdec_as_object_mark (context->Function_prototype); - swfdec_as_object_mark (context->Object); - swfdec_as_object_mark (context->Object_prototype); + /* This if is needed for SwfdecPlayer */ + if (context->global) { + swfdec_...