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

Issue 105693002: Generate a bit less code to handle failed arity checks. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Generate a bit less code to handle failed arity checks. If a failed argument count check is in the context of an 'extended' ExceptionState object, then throw the required TypeError using it instead. This saves having to duplicate the information it already contains, generating a bit less code overall. R=mkwst@chromium.org BUG=270033 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163527

Patch Set 1 #

Total comments: 6

Patch Set 2 : Retire ExceptionState helper previously added #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -102 lines) Patch
M LayoutTests/fast/dom/MutationObserver/mutation-observer-constructor-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 10 chunks +65 lines, -21 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8SupportTestInterface.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 19 chunks +45 lines, -19 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 14 chunks +35 lines, -14 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8CryptoCustom.cpp View 1 1 chunk +9 lines, -9 lines 0 comments Download
M Source/bindings/v8/custom/V8MutationObserverCustom.cpp View 1 2 chunks +6 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8SVGLengthCustom.cpp View 1 1 chunk +5 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8TextTrackCueCustom.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp View 1 1 chunk +20 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sof
With the grand switchover to the extended ExceptionState now completed & landed, a minor change ...
7 years ago (2013-12-04 22:41:59 UTC) #1
jochen (gone - plz use gerrit)
i defer to Mike
7 years ago (2013-12-05 08:58:09 UTC) #2
Mike West
The change broadly looks good. I'm not sure about the change in ExceptionState semantics, however. ...
7 years ago (2013-12-05 11:48:59 UTC) #3
sof
https://codereview.chromium.org/105693002/diff/1/Source/bindings/v8/ExceptionState.cpp File Source/bindings/v8/ExceptionState.cpp (right): https://codereview.chromium.org/105693002/diff/1/Source/bindings/v8/ExceptionState.cpp#newcode89 Source/bindings/v8/ExceptionState.cpp:89: throwIfNeeded(); On 2013/12/05 11:48:59, Mike West wrote: > This ...
7 years ago (2013-12-05 12:01:32 UTC) #4
Mike West
https://codereview.chromium.org/105693002/diff/1/Source/bindings/v8/ExceptionState.cpp File Source/bindings/v8/ExceptionState.cpp (right): https://codereview.chromium.org/105693002/diff/1/Source/bindings/v8/ExceptionState.cpp#newcode89 Source/bindings/v8/ExceptionState.cpp:89: throwIfNeeded(); On 2013/12/05 12:01:32, sof wrote: > It seems ...
7 years ago (2013-12-05 12:15:15 UTC) #5
sof
https://codereview.chromium.org/105693002/diff/1/Source/bindings/v8/ExceptionState.h File Source/bindings/v8/ExceptionState.h (right): https://codereview.chromium.org/105693002/diff/1/Source/bindings/v8/ExceptionState.h#newcode85 Source/bindings/v8/ExceptionState.h:85: void notEnoughArguments(int expected, int actual); On 2013/12/05 11:48:59, Mike ...
7 years ago (2013-12-09 22:53:20 UTC) #6
Mike West
LGTM. Let's go with this for the moment, and see where we end up as ...
7 years ago (2013-12-10 09:46:46 UTC) #7
Mike West
LGTM. Let's go with this for the moment, and see where we end up as ...
7 years ago (2013-12-10 09:47:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/105693002/40001
7 years ago (2013-12-10 10:15:51 UTC) #9
commit-bot: I haz the power
7 years ago (2013-12-10 11:21:17 UTC) #10
Message was sent while issue was closed.
Change committed as 163527

Powered by Google App Engine
This is Rietveld 408576698