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

Issue 1748183002: Make RUNTIME_ASSERT have more useful output in debug mode (Closed)

Created:
4 years, 9 months ago by Dan Ehrenberg
Modified:
4 years, 9 months ago
CC:
mvstanton, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make RUNTIME_ASSERT have more useful output in debug mode Runtime asserts are were previously a bit annoying to debug, due to the lack of a useful error message, even in debug mode. This patch prints out some more information in debug mode for runtime assert failures while preserving their exception-throwing semantics. While we're at it, it requires a semicolon after RUNTIME_ASSERT macro invocations. ``` $ rlwrap out/Debug/d8 --allow-natives-syntax V8 version 5.1.0 (candidate) d8> %ArrayBufferNeuter(1) # # Runtime error in ../../src/runtime/runtime-typedarray.cc, line 52 # # args[0]->IsJSArrayBuffer() ==== C stack trace =============================== 1: 0xf70ab5 2: 0xadeebf 3: 0xadedd4 4: 0x2ef17630693b (d8):1: illegal access %ArrayBufferNeuter(1) ^ d8> ``` Also give the other 'illegal access' case (a special SyntaxError type) a more descriptive error message for its sole usage. R=adamk Committed: https://crrev.com/78d845308fd89e2acdeb95ab01a20042794f04f1 Cr-Commit-Position: refs/heads/master@{#34401}

Patch Set 1 #

Patch Set 2 : Format and improve another error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -13 lines) Patch
M src/base/logging.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/base/logging.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/messages.h View 1 2 chunks +1 line, -1 line 0 comments Download
M src/parsing/parser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M src/runtime/runtime-liveedit.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M src/runtime/runtime-utils.h View 1 1 chunk +36 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748183002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748183002/1
4 years, 9 months ago (2016-03-01 00:03:09 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/11665)
4 years, 9 months ago (2016-03-01 00:06:31 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748183002/20001
4 years, 9 months ago (2016-03-01 00:18:30 UTC) #9
Dan Ehrenberg
4 years, 9 months ago (2016-03-01 00:40:16 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 00:48:47 UTC) #12
adamk
This change lgtm, but you'll need jochen for base/OWNERS, but is there a reason a ...
4 years, 9 months ago (2016-03-01 02:32:33 UTC) #14
Dan Ehrenberg
On 2016/03/01 at 02:32:33, adamk wrote: > This change lgtm, but you'll need jochen for ...
4 years, 9 months ago (2016-03-01 06:20:33 UTC) #15
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-01 14:43:54 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748183002/20001
4 years, 9 months ago (2016-03-01 16:40:08 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 16:42:15 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748183002/20001
4 years, 9 months ago (2016-03-01 16:50:59 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 16:53:16 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748183002/20001
4 years, 9 months ago (2016-03-01 17:07:19 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 17:09:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748183002/20001
4 years, 9 months ago (2016-03-01 17:18:59 UTC) #30
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-01 17:21:11 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 17:22:36 UTC) #33
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/78d845308fd89e2acdeb95ab01a20042794f04f1
Cr-Commit-Position: refs/heads/master@{#34401}

Powered by Google App Engine
This is Rietveld 408576698