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

Issue 1986173002: Refactor script position calculation (Closed)

Created:
4 years, 7 months ago by jgruber1
Modified:
4 years, 7 months ago
Reviewers:
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

Refactor script position calculation Script position calculation logic (i.e. line & column numbers for a given code position) is now based on a single method Script::GetPositionInfo(). Refactored related code in isolate.cc and js/messages.js to use the new method and removed the line_ends JS accessor. R=yangguo@chromium.org BUG= Committed: https://crrev.com/c04d547298ce4fd425ef1eaa9b02ad1e177918dc Cr-Commit-Position: refs/heads/master@{#36359}

Patch Set 1 #

Patch Set 2 : No unnecessary handle creation #

Patch Set 3 : Remove Script.line_ends #

Total comments: 20

Patch Set 4 : Remove SourceLocation #

Patch Set 5 : enum instead of bool, remove static wrapper #

Patch Set 6 : Fix DCHECK logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -263 lines) Patch
M src/accessors.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/accessors.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M src/debug/mirrors.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/heap-symbols.h View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 1 chunk +7 lines, -18 lines 0 comments Download
M src/js/messages.js View 1 2 3 9 chunks +19 lines, -122 lines 0 comments Download
M src/objects.h View 1 2 3 4 2 chunks +27 lines, -8 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 1 chunk +78 lines, -27 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +38 lines, -43 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (8 generated)
jgruber1
4 years, 7 months ago (2016-05-17 13:27:52 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1986173002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1986173002/1
4 years, 7 months ago (2016-05-17 13:27:56 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 13:59:09 UTC) #5
Yang
LGTM! Please consider the comments for a separate CL. https://codereview.chromium.org/1986173002/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1986173002/diff/40001/src/isolate.cc#newcode555 src/isolate.cc:555: ...
4 years, 7 months ago (2016-05-18 13:23:09 UTC) #6
jgruber1
https://codereview.chromium.org/1986173002/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1986173002/diff/40001/src/isolate.cc#newcode555 src/isolate.cc:555: bool valid_pos = Script::GetPositionInfo(script, position, &info, true); On 2016/05/18 ...
4 years, 7 months ago (2016-05-19 08:05:24 UTC) #7
jgruber1
https://codereview.chromium.org/1986173002/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1986173002/diff/40001/src/isolate.cc#newcode555 src/isolate.cc:555: bool valid_pos = Script::GetPositionInfo(script, position, &info, true); On 2016/05/19 ...
4 years, 7 months ago (2016-05-19 08:56:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1986173002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1986173002/80001
4 years, 7 months ago (2016-05-19 08:58:24 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/1844) v8_linux64_avx2_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 7 months ago (2016-05-19 09:22:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1986173002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1986173002/100001
4 years, 7 months ago (2016-05-19 11:46:24 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-19 12:22:23 UTC) #17
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/c04d547298ce4fd425ef1eaa9b02ad1e177918dc Cr-Commit-Position: refs/heads/master@{#36359}
4 years, 7 months ago (2016-05-19 12:23:42 UTC) #19
Michael Achenbach
4 years, 7 months ago (2016-05-19 13:54:13 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1994973002/ by machenbach@chromium.org.

The reason for reverting is: Breaks layout tests:
https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/bui....

Powered by Google App Engine
This is Rietveld 408576698