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

Issue 2547483002: Store SharedFunctionInfos of a Script in a FixedArray indexed by their ID (Closed)

Created:
4 years ago by jochen (gone - plz use gerrit)
Modified:
4 years ago
CC:
Hannes Payer (out of office), ulan, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Store SharedFunctionInfos of a Script in a FixedArray indexed by their ID Now that SharedFunctionInfos have a unique ID (and the IDs are dense), we can use them as an index into an array, instead of using a WeakFixedArray where we have to do a linear scan. Hooking up liveedit is a bit more involved, see https://docs.google.com/presentation/d/1FtNa3U7WsF5bPhY9uGoJG5Y9hnz5VBDabfOWpb4unWI/edit for an overview BUG=v8:5589 R=verwaest@chromium.org,jgruber@chromium.org Committed: https://crrev.com/6595e7405769dc9d49e9568d61485efc6d468baf Cr-Commit-Position: refs/heads/master@{#41600}

Patch Set 1 #

Total comments: 1

Patch Set 2 : updates #

Patch Set 3 : updates #

Patch Set 4 : updates #

Patch Set 5 : next try #

Patch Set 6 : updates #

Patch Set 7 : updates #

Total comments: 30

Patch Set 8 : updates #

Patch Set 9 : rebase #

Total comments: 2

Patch Set 10 : updates #

Patch Set 11 : updates #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -154 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 6 chunks +24 lines, -16 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -21 lines 0 comments Download
M src/debug/liveedit.h View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
M src/debug/liveedit.cc View 1 2 3 4 5 6 7 8 9 7 chunks +33 lines, -13 lines 0 comments Download
M src/debug/liveedit.js View 1 2 3 4 5 6 7 8 9 6 chunks +23 lines, -12 lines 1 comment Download
M src/factory.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M src/heap/object-stats.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/js/promise.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +26 lines, -13 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +74 lines, -49 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +1 line, -5 lines 0 comments Download
M src/parsing/parse-info.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/parsing/parse-info.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-function.cc View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M src/runtime/runtime-liveedit.cc View 1 2 3 4 5 6 7 1 chunk +18 lines, -2 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/parsing/test-parse-decision.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 73 (57 generated)
jochen (gone - plz use gerrit)
4 years ago (2016-12-01 10:25:18 UTC) #1
jochen (gone - plz use gerrit)
ptal Jakob: liveedit specific changes Toon: rest https://codereview.chromium.org/2547483002/diff/1/src/debug/liveedit.js File src/debug/liveedit.js (right): https://codereview.chromium.org/2547483002/diff/1/src/debug/liveedit.js#newcode86 src/debug/liveedit.js:86: MathMax.apply(null, new_compile_info.map(i ...
4 years ago (2016-12-01 10:30:56 UTC) #6
jgruber
lgtm for liveedit
4 years ago (2016-12-01 11:00:15 UTC) #7
jochen (gone - plz use gerrit)
ptal now that the bots are green. I tried to visualize the changes to liveedit ...
4 years ago (2016-12-06 20:18:21 UTC) #35
Toon Verwaest
Mostly minor comments. Jakob should have a look again as well for the LiveEdit part ...
4 years ago (2016-12-06 21:10:14 UTC) #36
jgruber
Still lgtm, with the caveat that I don't know the liveedit code well. https://codereview.chromium.org/2547483002/diff/110001/src/runtime/runtime-liveedit.cc File ...
4 years ago (2016-12-07 08:31:27 UTC) #37
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc#newcode1340 src/debug/debug.cc:1340: if (raw->IsSmi() || WeakCell::cast(raw)->cleared()) continue; On 2016/12/06 at 21:10:14, ...
4 years ago (2016-12-07 15:57:01 UTC) #38
Toon Verwaest
https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc#newcode1340 src/debug/debug.cc:1340: if (raw->IsSmi() || WeakCell::cast(raw)->cleared()) continue; On 2016/12/07 15:57:00, jochen ...
4 years ago (2016-12-08 07:31:31 UTC) #51
Yang
On 2016/12/08 07:31:31, Toon Verwaest wrote: > https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc > File src/debug/debug.cc (right): > > https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc#newcode1340 ...
4 years ago (2016-12-08 11:51:54 UTC) #52
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2547483002/diff/110001/src/debug/debug.cc#newcode1340 src/debug/debug.cc:1340: if (raw->IsSmi() || WeakCell::cast(raw)->cleared()) continue; On 2016/12/08 at 07:31:30, ...
4 years ago (2016-12-08 12:31:14 UTC) #54
Toon Verwaest
lgtm
4 years ago (2016-12-08 13:36:23 UTC) #59
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/2547483002/190001
4 years ago (2016-12-08 17:04:30 UTC) #66
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years ago (2016-12-08 17:06:39 UTC) #68
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/6595e7405769dc9d49e9568d61485efc6d468baf Cr-Commit-Position: refs/heads/master@{#41600}
4 years ago (2016-12-08 17:07:20 UTC) #70
kozy
https://codereview.chromium.org/2547483002/diff/190001/src/debug/liveedit.js File src/debug/liveedit.js (right): https://codereview.chromium.org/2547483002/diff/190001/src/debug/liveedit.js#newcode215 src/debug/liveedit.js:215: .corresponding_node.info.function_literal_id; It could be no corresponding_node here as mentioned ...
4 years ago (2016-12-14 01:09:51 UTC) #72
kozy
4 years ago (2016-12-14 01:10:37 UTC) #73
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:190001) has been created in
https://codereview.chromium.org/2578433002/ by kozyatinskiy@chromium.org.

The reason for reverting is: LiveEdit is broken in some cases.
crbug.com/673950.

Powered by Google App Engine
This is Rietveld 408576698