RESOLVED FIXED Bug 93880
[Qt] Clean up exception handling
https://bugs.webkit.org/show_bug.cgi?id=93880
Summary [Qt] Clean up exception handling
Simon Hausmann
Reported 2012-08-13 12:18:11 PDT
[Qt] Clean up exception handling
Attachments
Patch (4.93 KB, patch)
2012-08-13 12:22 PDT, Simon Hausmann
kenneth: review+
Simon Hausmann
Comment 1 2012-08-13 12:22:14 PDT
Kenneth Rohde Christiansen
Comment 2 2012-08-13 12:25:48 PDT
Comment on attachment 158070 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=158070&action=review > Source/WebCore/ChangeLog:10 > + was thrown. Naturally the caller must store that ValueRef on the stack in order to get caught > + by the garbage collector, otherwise the callee would have to use JSValueProtect on it. you want it to be garbage collected?
Simon Hausmann
Comment 3 2012-08-13 12:28:22 PDT
(In reply to comment #2) > (From update of attachment 158070 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=158070&action=review > > > Source/WebCore/ChangeLog:10 > > + was thrown. Naturally the caller must store that ValueRef on the stack in order to get caught > > + by the garbage collector, otherwise the callee would have to use JSValueProtect on it. > > you want it to be garbage collected? No :) caught in the sense of _marked_ so that the GC does not delete it on the heap.
Kenneth Rohde Christiansen
Comment 4 2012-08-13 12:29:58 PDT
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 158070 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=158070&action=review > > > > > Source/WebCore/ChangeLog:10 > > > + was thrown. Naturally the caller must store that ValueRef on the stack in order to get caught > > > + by the garbage collector, otherwise the callee would have to use JSValueProtect on it. > > > > you want it to be garbage collected? > > No :) caught in the sense of _marked_ so that the GC does not delete it on the heap. I guessed so, maybe that could be rewritten to be more clear for non JS guys like me.
Simon Hausmann
Comment 5 2012-08-13 12:33:13 PDT
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > (From update of attachment 158070 [details] [details] [details]) > > > View in context: https://bugs.webkit.org/attachment.cgi?id=158070&action=review > > > > > > > Source/WebCore/ChangeLog:10 > > > > + was thrown. Naturally the caller must store that ValueRef on the stack in order to get caught > > > > + by the garbage collector, otherwise the callee would have to use JSValueProtect on it. > > > > > > you want it to be garbage collected? > > > > No :) caught in the sense of _marked_ so that the GC does not delete it on the heap. > > I guessed so, maybe that could be rewritten to be more clear for non JS guys like me. Good point, will do :)
Caio Marcelo de Oliveira Filho
Comment 6 2012-08-13 13:08:47 PDT
LGTM.
Simon Hausmann
Comment 7 2012-08-13 13:13:23 PDT
Note You need to log in before you can comment on or make changes to this bug.