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

Issue 2817533003: Replace ASSERT, RELEASE_ASSERT, and ASSERT_NOT_REACHED in bindings (Closed)

Created:
3 years, 8 months ago by bhagirathi.s
Modified:
3 years, 8 months ago
Reviewers:
tkent, Srirama, jbroman
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replacing ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in bindings with DCHECK_op, NOTREACHED,CHECK_op respectively BUG=708056 Review-Url: https://codereview.chromium.org/2817533003 Cr-Commit-Position: refs/heads/master@{#465109} Committed: https://chromium.googlesource.com/chromium/src/+/0f6dc1c0458928b9e3abe4927ee99018e6945737

Patch Set 1 #

Total comments: 6

Patch Set 2 : Replace ASSERT, RELEASE_ASSERT, and ASSERT_NOT_REACHED in bindings #

Patch Set 3 : Rebase #

Total comments: 3

Patch Set 4 : fixed dcheck build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -238 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp View 1 2 3 10 chunks +21 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Dictionary.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForCore.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/Iterable.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/RetainedDOMInfo.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptFunction.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptState.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValue.h View 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp View 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp View 1 2 7 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp View 1 21 chunks +23 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8IdleTaskRunner.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 2 9 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 8 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8StringResource.h View 6 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8StringResource.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/ToV8ForModules.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp View 14 chunks +16 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (20 generated)
bhagirathi.s
PTAL
3 years, 8 months ago (2017-04-12 10:54:24 UTC) #3
Srirama
Peer review looks good. Just make sure the commit msg is shorter than 80chars on ...
3 years, 8 months ago (2017-04-12 15:00:05 UTC) #4
bhagirathi.s
PTAL
3 years, 8 months ago (2017-04-13 05:30:16 UTC) #7
tkent
https://codereview.chromium.org/2817533003/diff/1/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp File third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/2817533003/diff/1/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp#newcode130 third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp:130: DCHECK(!promise_.IsEmpty() && !promise_.IsWeak()); Split this into two DCHECKs. DCHECK(!promise_.IsEmpty()); ...
3 years, 8 months ago (2017-04-13 05:37:16 UTC) #8
bhagirathi.s
https://codereview.chromium.org/2817533003/diff/1/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp File third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/2817533003/diff/1/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp#newcode130 third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp:130: DCHECK(!promise_.IsEmpty() && !promise_.IsWeak()); On 2017/04/13 05:37:16, tkent wrote: > ...
3 years, 8 months ago (2017-04-13 09:10:35 UTC) #9
tkent
please rebase.
3 years, 8 months ago (2017-04-13 09:30:47 UTC) #14
bhagirathi.s
Rebased on latest. PTAL
3 years, 8 months ago (2017-04-13 10:18:05 UTC) #15
bhagirathi.s
DOMWrapperWorld.cpp is failed to compile in build bot, since IsIsolatedWorldId() is defined under flag DCHECK_IS_ON() ...
3 years, 8 months ago (2017-04-13 14:04:40 UTC) #20
tkent
https://codereview.chromium.org/2817533003/diff/40001/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp File third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp (right): https://codereview.chromium.org/2817533003/diff/40001/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp#newcode190 third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp:190: DCHECK(IsIsolatedWorldId(world_id)); On 2017/04/13 at 14:04:39, bhagirathi.s wrote: > This ...
3 years, 8 months ago (2017-04-14 00:26:45 UTC) #21
bhagirathi.s
PTAL https://codereview.chromium.org/2817533003/diff/40001/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp File third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp (right): https://codereview.chromium.org/2817533003/diff/40001/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp#newcode190 third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp:190: DCHECK(IsIsolatedWorldId(world_id)); On 2017/04/14 00:26:44, tkent wrote: > On ...
3 years, 8 months ago (2017-04-17 09:13:42 UTC) #24
tkent
lgtm
3 years, 8 months ago (2017-04-18 01:53:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2817533003/60001
3 years, 8 months ago (2017-04-18 01:54:19 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 02:36:46 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0f6dc1c0458928b9e3abe4927ee9...

Powered by Google App Engine
This is Rietveld 408576698