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

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed)

Created:
7 years, 5 months ago by arv (Not doing code reviews)
Modified:
7 years, 5 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, do-not-use, Nils Barth (inactive), jamesr, caseq+blink_chromium.org, alecflett, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, Nate Chapin, jsbell, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dgrogan, Use mkwst_at_chromium.org plz.
Visibility:
Public.

Description

Remove IDBNotFoundError ExceptionCode Instead of passing an ExceptionCode (int) around to signify an exception, we now pass an ExceptionState object. This is so that we can pass more data out than just a single int. The ExceptionState object has methods for throwing an exception with an optional error message. There are also temporary converters so that functions can still use ExceptionCode until the entire code base has transitioned. Once that is done the ExcetionState code can be simplified further. BUG=252233 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153938

Patch Set 1 #

Patch Set 2 : merge #

Total comments: 16

Patch Set 3 : rebase etc #

Patch Set 4 : Cleanup and move error message to a constant #

Patch Set 5 : Update rest of IDB to use ExceptionState instead of ExceptionCode #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 10

Patch Set 9 : cleanup #

Patch Set 10 : merge #

Patch Set 11 : Add missing include in code gen wich causes win compile failure #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -515 lines) Patch
M Source/bindings/bindings.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 3 4 5 6 7 8 9 10 32 chunks +53 lines, -73 lines 0 comments Download
A + Source/bindings/v8/ExceptionState.h View 1 2 3 4 1 chunk +44 lines, -22 lines 0 comments Download
A + Source/bindings/v8/ExceptionState.cpp View 1 2 3 4 1 chunk +24 lines, -13 lines 2 comments Download
A + Source/bindings/v8/ExceptionStatePlaceholder.h View 1 2 3 4 1 chunk +33 lines, -22 lines 0 comments Download
A + Source/bindings/v8/ExceptionStatePlaceholder.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -13 lines 0 comments Download
M Source/bindings/v8/V8ThrowException.h View 1 chunk +5 lines, -1 line 0 comments Download
M Source/bindings/v8/V8ThrowException.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/DOMException.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/DOMException.cpp View 1 2 2 chunks +10 lines, -24 lines 0 comments Download
M Source/core/dom/ExceptionCode.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorIndexedDBAgent.cpp View 1 2 3 4 5 6 7 12 chunks +40 lines, -37 lines 0 comments Download
M Source/modules/indexeddb/IDBCursor.h View 1 2 3 4 3 chunks +7 lines, -8 lines 0 comments Download
M Source/modules/indexeddb/IDBCursor.cpp View 1 2 3 4 5 6 7 8 chunks +27 lines, -29 lines 0 comments Download
M Source/modules/indexeddb/IDBCursorBackendInterface.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBDatabase.h View 1 2 3 4 3 chunks +9 lines, -8 lines 0 comments Download
M Source/modules/indexeddb/IDBDatabase.cpp View 1 2 3 4 5 6 8 chunks +25 lines, -25 lines 0 comments Download
M Source/modules/indexeddb/IDBDatabaseBackendInterface.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBFactory.h View 1 2 3 4 2 chunks +8 lines, -9 lines 0 comments Download
M Source/modules/indexeddb/IDBFactory.cpp View 1 2 3 4 6 chunks +16 lines, -15 lines 0 comments Download
M Source/modules/indexeddb/IDBIndex.h View 1 2 3 4 2 chunks +11 lines, -10 lines 0 comments Download
M Source/modules/indexeddb/IDBIndex.cpp View 1 2 3 4 6 chunks +42 lines, -41 lines 0 comments Download
M Source/modules/indexeddb/IDBKeyRange.h View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M Source/modules/indexeddb/IDBKeyRange.cpp View 1 2 3 4 2 chunks +13 lines, -12 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.h View 1 2 3 4 3 chunks +21 lines, -20 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.cpp View 1 2 3 4 5 6 7 8 19 chunks +82 lines, -85 lines 0 comments Download
M Source/modules/indexeddb/IDBRequest.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M Source/modules/indexeddb/IDBRequest.cpp View 1 2 3 4 5 6 7 4 chunks +8 lines, -8 lines 0 comments Download
M Source/modules/indexeddb/IDBTransaction.h View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/modules/indexeddb/IDBTransaction.cpp View 1 2 3 4 5 6 7 chunks +11 lines, -13 lines 0 comments Download
M public/platform/WebIDBDatabaseException.h View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
arv (Not doing code reviews)
Feedback wanted There is some room for performance improvements once all the error handling has ...
7 years, 5 months ago (2013-07-01 22:29:30 UTC) #1
haraken
Where does the performance gain come from? It looks like there is no change in ...
7 years, 5 months ago (2013-07-01 23:55:04 UTC) #2
arv (Not doing code reviews)
On 2013/07/01 23:55:04, haraken wrote: > Where does the performance gain come from? It looks ...
7 years, 5 months ago (2013-07-02 00:34:18 UTC) #3
jsbell
https://codereview.chromium.org/18398002/diff/2001/Source/core/dom/DOMException.h File Source/core/dom/DOMException.h (right): https://codereview.chromium.org/18398002/diff/2001/Source/core/dom/DOMException.h#newcode42 Source/core/dom/DOMException.h:42: static PassRefPtr<DOMException> create(ExceptionCode, const char* = 0); nit: name ...
7 years, 5 months ago (2013-07-02 18:48:08 UTC) #4
arv (Not doing code reviews)
I ran the perf tests on my MacPro as well and the outcome is similar. ...
7 years, 5 months ago (2013-07-09 19:12:57 UTC) #5
arv (Not doing code reviews)
I believe this is ready for review. PTAL. https://codereview.chromium.org/18398002/diff/2001/Source/bindings/v8/ExceptionState.h File Source/bindings/v8/ExceptionState.h (right): https://codereview.chromium.org/18398002/diff/2001/Source/bindings/v8/ExceptionState.h#newcode50 Source/bindings/v8/ExceptionState.h:50: virtual ...
7 years, 5 months ago (2013-07-09 23:41:03 UTC) #6
jsbell
IDB changes LGTM https://codereview.chromium.org/18398002/diff/30001/Source/bindings/v8/ExceptionState.cpp File Source/bindings/v8/ExceptionState.cpp (right): https://codereview.chromium.org/18398002/diff/30001/Source/bindings/v8/ExceptionState.cpp#newcode41 Source/bindings/v8/ExceptionState.cpp:41: if (m_exceptionThrown) Out of curiosity, do ...
7 years, 5 months ago (2013-07-10 00:41:31 UTC) #7
haraken
LGTM for bindings/ and core/
7 years, 5 months ago (2013-07-10 00:43:36 UTC) #8
arv (Not doing code reviews)
https://codereview.chromium.org/18398002/diff/30001/Source/bindings/v8/ExceptionState.cpp File Source/bindings/v8/ExceptionState.cpp (right): https://codereview.chromium.org/18398002/diff/30001/Source/bindings/v8/ExceptionState.cpp#newcode41 Source/bindings/v8/ExceptionState.cpp:41: if (m_exceptionThrown) On 2013/07/10 00:41:31, jsbell wrote: > Out ...
7 years, 5 months ago (2013-07-10 02:12:58 UTC) #9
Mike West
This is great, Erik. Thank you for working on it. https://chromiumcodereview.appspot.com/18398002/diff/30002/Source/bindings/v8/custom/V8NodeCustom.cpp File Source/bindings/v8/custom/V8NodeCustom.cpp (right): https://chromiumcodereview.appspot.com/18398002/diff/30002/Source/bindings/v8/custom/V8NodeCustom.cpp#newcode69 ...
7 years, 5 months ago (2013-07-10 09:40:30 UTC) #10
arv (Not doing code reviews)
https://codereview.chromium.org/18398002/diff/30002/Source/bindings/v8/custom/V8NodeCustom.cpp File Source/bindings/v8/custom/V8NodeCustom.cpp (right): https://codereview.chromium.org/18398002/diff/30002/Source/bindings/v8/custom/V8NodeCustom.cpp#newcode69 Source/bindings/v8/custom/V8NodeCustom.cpp:69: ExceptionState es(args.GetIsolate()); On 2013/07/10 09:40:30, Mike West wrote: > ...
7 years, 5 months ago (2013-07-10 15:37:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/18398002/43001
7 years, 5 months ago (2013-07-10 16:01:42 UTC) #12
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=3254
7 years, 5 months ago (2013-07-10 16:12:48 UTC) #13
arv (Not doing code reviews)
Missing LGTM from an OWNER for these files: public/platform/WebIDBDatabaseException.h
7 years, 5 months ago (2013-07-10 16:25:24 UTC) #14
dglazkov
LGTM.
7 years, 5 months ago (2013-07-10 17:49:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/18398002/43001
7 years, 5 months ago (2013-07-10 17:50:25 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_lint, webkit_python_tests, webkit_tests, webkit_unit_tests, weborigin_unittests, wtf_unittests ...
7 years, 5 months ago (2013-07-10 18:38:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/18398002/43001
7 years, 5 months ago (2013-07-10 19:09:00 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-10 19:43:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/18398002/64001
7 years, 5 months ago (2013-07-10 20:08:27 UTC) #20
michaeln
https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp File Source/bindings/v8/ExceptionState.cpp (right): https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp#newcode43 Source/bindings/v8/ExceptionState.cpp:43: V8ThrowException::setDOMException(ec, message, m_isolate); Does this call invoke script? If ...
7 years, 5 months ago (2013-07-10 20:31:01 UTC) #21
michaeln
https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp File Source/bindings/v8/ExceptionState.cpp (right): https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp#newcode51 Source/bindings/v8/ExceptionState.cpp:51: V8ThrowException::throwTypeError(message, m_isolate); ditto
7 years, 5 months ago (2013-07-10 20:32:20 UTC) #22
arv (Not doing code reviews)
On 2013/07/10 20:32:20, michaeln wrote: > https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp > File Source/bindings/v8/ExceptionState.cpp (right): > > https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp#newcode51 > ...
7 years, 5 months ago (2013-07-10 20:36:07 UTC) #23
arv (Not doing code reviews)
On 2013/07/10 20:31:01, michaeln wrote: > https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp > File Source/bindings/v8/ExceptionState.cpp (right): > > https://codereview.chromium.org/18398002/diff/64001/Source/bindings/v8/ExceptionState.cpp#newcode43 > ...
7 years, 5 months ago (2013-07-10 20:43:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/18398002/64001
7 years, 5 months ago (2013-07-10 20:43:37 UTC) #25
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 23:09:45 UTC) #26
Message was sent while issue was closed.
Change committed as 153938

Powered by Google App Engine
This is Rietveld 408576698