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

Issue 2142933003: Move Error methods to C++ (Closed)

Created:
4 years, 5 months ago by jgruber
Modified:
4 years, 5 months ago
Reviewers:
Benedikt Meurer, Yang
CC:
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

Move Error methods to C++ This ports a large portion of Error methods to C++, including the constructor, stack setter and getter, and Error.prototype.toString. BUG= Committed: https://crrev.com/5742da056a290caa13a0b8717ddb1e43424e0d31 Committed: https://crrev.com/9211dee01abc9e8dee16cb0915fc9673132823af Cr-Original-Commit-Position: refs/heads/master@{#37870} Cr-Commit-Position: refs/heads/master@{#37908}

Patch Set 1 #

Patch Set 2 : TODO #

Patch Set 3 : Fix compiler warning #

Patch Set 4 : Properly set the new map #

Patch Set 5 : Better cast handling in ErrorStackGetter #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Total comments: 10

Patch Set 8 : Address comments #

Patch Set 9 : Fix global proxy access #

Patch Set 10 : Move to builtins-error.cc #

Total comments: 2

Patch Set 11 : Address comments #

Patch Set 12 : Fix two issues exposed by clusterfuzz #

Patch Set 13 : Fix two issues exposed by clusterfuzz #

Total comments: 2

Patch Set 14 : Handle exception in GetProperty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+540 lines, -206 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -2 lines 0 comments Download
M src/accessors.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/accessors.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +133 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +79 lines, -35 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M src/builtins/builtins.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A src/builtins/builtins-error.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +210 lines, -0 lines 0 comments Download
M src/contexts.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap-symbols.h View 1 2 3 4 5 6 7 6 chunks +7 lines, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +53 lines, -19 lines 0 comments Download
M src/js/messages.js View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -108 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 5 6 1 chunk +0 lines, -20 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-thread-termination.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M test/mjsunit/cross-realm-filtering.js View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -6 lines 0 comments Download
M test/mjsunit/debug-function-scopes.js View 1 chunk +0 lines, -3 lines 0 comments Download
M test/mjsunit/regress/regress-1980.js View 2 chunks +3 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-599067.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/stack-traces.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M test/mjsunit/stack-traces-overflow.js View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 79 (60 generated)
jgruber
4 years, 5 months ago (2016-07-14 14:50:31 UTC) #29
Yang
https://codereview.chromium.org/2142933003/diff/120001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2142933003/diff/120001/src/accessors.cc#newcode1145 src/accessors.cc:1145: error, isolate->factory()->formatted_stack_trace_symbol(), How about we simply reconfigure the "stack" ...
4 years, 5 months ago (2016-07-15 13:10:11 UTC) #30
jgruber
https://codereview.chromium.org/2142933003/diff/120001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2142933003/diff/120001/src/accessors.cc#newcode1145 src/accessors.cc:1145: error, isolate->factory()->formatted_stack_trace_symbol(), On 2016/07/15 13:10:11, Yang wrote: > How ...
4 years, 5 months ago (2016-07-18 13:06:11 UTC) #39
jgruber
And moved to builtins-error.cc, PTAL.
4 years, 5 months ago (2016-07-19 11:03:01 UTC) #42
Yang
lgtm once comment is addressed. https://codereview.chromium.org/2142933003/diff/180001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2142933003/diff/180001/src/accessors.cc#newcode1172 src/accessors.cc:1172: // The structured stack ...
4 years, 5 months ago (2016-07-19 11:34:59 UTC) #43
jgruber
https://codereview.chromium.org/2142933003/diff/180001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2142933003/diff/180001/src/accessors.cc#newcode1172 src/accessors.cc:1172: // The structured stack trace is not available. Look ...
4 years, 5 months ago (2016-07-19 13:21:50 UTC) #48
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/2142933003/200001
4 years, 5 months ago (2016-07-19 13:43:13 UTC) #53
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 5 months ago (2016-07-19 13:49:56 UTC) #55
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/5742da056a290caa13a0b8717ddb1e43424e0d31 Cr-Commit-Position: refs/heads/master@{#37870}
4 years, 5 months ago (2016-07-19 13:51:18 UTC) #57
Benedikt Meurer
Awesome, Jakob. Thanks for doing.
4 years, 5 months ago (2016-07-19 17:23:35 UTC) #59
jgruber
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2159223004/ by jgruber@chromium.org. ...
4 years, 5 months ago (2016-07-20 06:41:28 UTC) #60
jgruber
Fixed two issues exposed by clusterfuzz: * The first was triggered by calling Error.captureStackTrace() on ...
4 years, 5 months ago (2016-07-20 11:46:07 UTC) #64
Yang
https://codereview.chromium.org/2142933003/diff/240001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2142933003/diff/240001/src/accessors.cc#newcode1218 src/accessors.cc:1218: if (!JSObject::GetProperty(holder, name).ToHandle(&formatted_stack_trace)) { In this case we would ...
4 years, 5 months ago (2016-07-20 12:07:51 UTC) #65
jgruber
https://codereview.chromium.org/2142933003/diff/240001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2142933003/diff/240001/src/accessors.cc#newcode1218 src/accessors.cc:1218: if (!JSObject::GetProperty(holder, name).ToHandle(&formatted_stack_trace)) { On 2016/07/20 12:07:51, Yang wrote: ...
4 years, 5 months ago (2016-07-20 12:14:11 UTC) #67
Yang
On 2016/07/20 12:14:11, jgruber wrote: > https://codereview.chromium.org/2142933003/diff/240001/src/accessors.cc > File src/accessors.cc (right): > > https://codereview.chromium.org/2142933003/diff/240001/src/accessors.cc#newcode1218 > ...
4 years, 5 months ago (2016-07-20 12:29:56 UTC) #69
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/2142933003/260001
4 years, 5 months ago (2016-07-20 12:52:40 UTC) #73
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 5 months ago (2016-07-20 13:02:46 UTC) #75
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/9211dee01abc9e8dee16cb0915fc9673132823af Cr-Commit-Position: refs/heads/master@{#37908}
4 years, 5 months ago (2016-07-20 13:05:57 UTC) #77
jgruber
4 years, 5 months ago (2016-07-21 08:56:32 UTC) #78
Message was sent while issue was closed.
A revert of this CL (patchset #14 id:260001) has been created in
https://codereview.chromium.org/2165633005/ by jgruber@chromium.org.

The reason for reverting is: Clusterfuzz failures:

https://bugs.chromium.org/p/chromium/issues/detail?id=630145#c1
https://bugs.chromium.org/p/chromium/issues/detail?id=630144#c1.

Powered by Google App Engine
This is Rietveld 408576698