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

Issue 2003483002: Refactor script position calculation (Closed)

Created:
4 years, 7 months ago by jgruber1
Modified:
4 years, 7 months ago
Reviewers:
Yang, jgruber
CC:
v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@20160517_refactor_position_info
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. The line_ends accessor is still in use by chromium and thus cannot be removed yet. R=yangguo@chromium.org BUG= Committed: https://crrev.com/2f3879d54633c4076d38e9fc85b6e2e157c61548 Cr-Commit-Position: refs/heads/master@{#36398}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Uppercase enums #

Patch Set 3 : Attempt to fix branch dependencies #

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

Messages

Total messages: 21 (9 generated)
jgruber1
4 years, 7 months ago (2016-05-20 07:36:22 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/2003483002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003483002/1
4 years, 7 months ago (2016-05-20 07:36:25 UTC) #3
jgruber
Identical to https://codereview.chromium.org/1986173002 except changes to bootstrapper.cc and accessors.{h,cc} have been reverted.
4 years, 7 months ago (2016-05-20 07:38:23 UTC) #4
Yang
LGTM with nit https://codereview.chromium.org/2003483002/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/2003483002/diff/1/src/objects.h#newcode6452 src/objects.h:6452: enum OffsetFlag { kNoOffset = 0, ...
4 years, 7 months ago (2016-05-20 07:41:00 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 08:09:40 UTC) #7
jgruber
https://codereview.chromium.org/2003483002/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/2003483002/diff/1/src/objects.h#newcode6452 src/objects.h:6452: enum OffsetFlag { kNoOffset = 0, kWithOffset = 1 ...
4 years, 7 months ago (2016-05-20 08:19:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003483002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003483002/20001
4 years, 7 months ago (2016-05-20 08:19:17 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/1956) v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 7 months ago (2016-05-20 08:20:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003483002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003483002/40001
4 years, 7 months ago (2016-05-20 08:25:07 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-20 08:59:05 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2f3879d54633c4076d38e9fc85b6e2e157c61548 Cr-Commit-Position: refs/heads/master@{#36398}
4 years, 7 months ago (2016-05-20 09:00:27 UTC) #20
Michael Achenbach
4 years, 7 months ago (2016-05-20 10:48:39 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1995323002/ by machenbach@chromium.org.

The reason for reverting is: Crashes gc stress with custom snapshot:
https://build.chromium.org/p/client.v8/builders/V8%20Linux64%20GC%20Stress%20....

Powered by Google App Engine
This is Rietveld 408576698