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

Issue 1281833002: Rewrite Error.prototype.toString in C++. (Closed)

Created:
5 years, 4 months ago by Yang
Modified:
5 years, 4 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Rewrite Error.prototype.toString in C++. This avoids many back-and-forth calls to the runtime. This also slightly changes the way we avoid getters. Previously, we circumvent getting the name property of ReferenceError, SyntaxError and TypeError due to crbug/69187 (in order to avoid leaking information from those errors through a 'name' getter installed on their prototypes). Now we do that for all errors created by V8. R=jkummerow@chromium.org, rossberg@chromium.org BUG=crbug:513472, crbug:69187 LOG=N Committed: https://crrev.com/2e2765a6ebfdec83188d423c24a786c96c5fa6ed Cr-Commit-Position: refs/heads/master@{#30105}

Patch Set 1 #

Patch Set 2 : add test case #

Total comments: 6

Patch Set 3 : address comments #

Total comments: 1

Patch Set 4 : fix comment typo #

Patch Set 5 : fix test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -66 lines) Patch
M src/bootstrapper.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/isolate.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M src/messages.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M src/messages.cc View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
M src/messages.js View 1 2 3 3 chunks +5 lines, -56 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M test/mjsunit/error-constructors.js View 1 chunk +35 lines, -8 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-513472.js View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
Yang
On 2015/08/07 06:47:43, Yang wrote: > mailto:yangguo@chromium.org changed reviewers: > + mailto:erights@gmail.com Mark, could you ...
5 years, 4 months ago (2015-08-07 06:48:12 UTC) #2
Jakob Kummerow
Looks good. I have a couple of nits, and one high-level comment: IIUC, this doesn't ...
5 years, 4 months ago (2015-08-08 21:56:09 UTC) #3
Yang
On 2015/08/08 21:56:09, Jakob wrote: > Looks good. I have a couple of nits, and ...
5 years, 4 months ago (2015-08-10 09:04:05 UTC) #4
Yang
On 2015/08/10 09:04:05, Yang wrote: > On 2015/08/08 21:56:09, Jakob wrote: > > Looks good. ...
5 years, 4 months ago (2015-08-10 09:04:24 UTC) #5
Jakob Kummerow
LGTM with a nit. https://codereview.chromium.org/1281833002/diff/20001/src/messages.cc File src/messages.cc (right): https://codereview.chromium.org/1281833002/diff/20001/src/messages.cc#newcode396 src/messages.cc:396: // internally created error object, ...
5 years, 4 months ago (2015-08-10 11:07:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281833002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281833002/40001
5 years, 4 months ago (2015-08-11 08:22:14 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/8552)
5 years, 4 months ago (2015-08-11 08:32:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281833002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281833002/60001
5 years, 4 months ago (2015-08-11 08:52:44 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:60001)
5 years, 4 months ago (2015-08-11 09:15:34 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 09:15:48 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2e2765a6ebfdec83188d423c24a786c96c5fa6ed
Cr-Commit-Position: refs/heads/master@{#30105}

Powered by Google App Engine
This is Rietveld 408576698