Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Issue 18677002: [Binding] use V8TRYCATCH_VOID and raw pointer in indexed setter (Closed)

Created:
7 years, 5 months ago by kojih
Modified:
7 years, 5 months ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

[Binding] use V8TRYCATCH_VOID and raw pointer in indexed setter We use V8TRYCATCH_VOID when we assign converted JS value into native variable, and the native variable type is raw pointer if the type is not primitive. (occur in attribute setter and function) However, in generated indexed setter they are simple assignment without try-catch and variable type is RefPtr. This patch unify the situation by using V8TRYCATCH_VOID and raw pointer. R=haraken@chromium.org BUG=239771 TEST=TestEventTarget.idl Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153567

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -7 lines) Patch
M Source/bindings/scripts/CodeGeneratorV8.pm View 4 chunks +3 lines, -6 lines 6 comments Download
M Source/bindings/tests/idls/TestEventTarget.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
kojih
r? Example of V8TRYCATCH_VOID and raw pointer: https://code.google.com/p/chromium/codesearch#chromium/src/out/Debug/obj/gen/webcore/bindings/V8Node.cpp&q=V8TRYCATCH_VOID&sq=package:chromium&type=cs&l=701 This CL is necessary for reducing various ...
7 years, 5 months ago (2013-07-04 08:14:50 UTC) #1
haraken
https://codereview.chromium.org/18677002/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (left): https://codereview.chromium.org/18677002/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm#oldcode3355 Source/bindings/scripts/CodeGeneratorV8.pm:3355: $passNativeValue .= ".release()" if (IsRefPtrType($type)); Why can you remove ...
7 years, 5 months ago (2013-07-04 08:22:38 UTC) #2
kojih
https://codereview.chromium.org/18677002/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (left): https://codereview.chromium.org/18677002/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm#oldcode3355 Source/bindings/scripts/CodeGeneratorV8.pm:3355: $passNativeValue .= ".release()" if (IsRefPtrType($type)); Since this patch changes ...
7 years, 5 months ago (2013-07-04 08:30:42 UTC) #3
haraken
Makes sense. LGTM.
7 years, 5 months ago (2013-07-04 08:33:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/18677002/1
7 years, 5 months ago (2013-07-04 08:34:49 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-04 09:50:27 UTC) #6
Message was sent while issue was closed.
Change committed as 153567

Powered by Google App Engine
This is Rietveld 408576698