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 1183733006: Keep a canonical list of shared function infos. (Closed)

Created:
5 years, 6 months ago by Yang
Modified:
5 years, 6 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev, Michael Hablich, Hannes Payer (out of office), Toon Verwaest
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Keep a canonical list of shared function infos. Each Script object now keeps a WeakFixedArray of SharedFunctionInfo objects created from this script. This way, when compiling a function, we do not create duplicate shared function info objects when recompiling with either compiler. This fixes a class of issues in the debugger, where we set break points on one shared function info, but functions from duplicate shared function infos are not affected. LOG=N BUG=v8:4132 Committed: https://crrev.com/c1669450834436508e0007885eb7ac266cbcf083 Cr-Commit-Position: refs/heads/master@{#29151}

Patch Set 1 #

Patch Set 2 : save some space #

Patch Set 3 : store per script #

Patch Set 4 : serializer tweak #

Total comments: 7

Patch Set 5 : reorder SetScript #

Patch Set 6 : addressed comments #

Patch Set 7 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -93 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/ast.h View 1 2 3 4 3 chunks +0 lines, -6 lines 0 comments Download
M src/ast.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/codegen.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M src/compiler.cc View 1 2 4 chunks +40 lines, -18 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 2 chunks +6 lines, -10 lines 0 comments Download
M src/debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/hydrogen.cc View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/liveedit.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/mips64/full-codegen-mips64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 5 8 chunks +22 lines, -13 lines 0 comments Download
M src/objects.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-printer.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/ppc/full-codegen-ppc.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/snapshot/serialize.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M src/typing.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/x87/full-codegen-x87.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-4121.js View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Yang
Michael, please take a look. Hannes and Toon: this CL increases the size of a ...
5 years, 6 months ago (2015-06-17 14:07:07 UTC) #2
Yang
On 2015/06/17 14:07:07, Yang wrote: > Michael, please take a look. > > Hannes and ...
5 years, 6 months ago (2015-06-17 15:04:29 UTC) #3
Yang
On 2015/06/17 15:04:29, Yang wrote: > On 2015/06/17 14:07:07, Yang wrote: > > Michael, please ...
5 years, 6 months ago (2015-06-18 09:19:27 UTC) #4
Yang
On 2015/06/18 09:19:27, Yang wrote: > On 2015/06/17 15:04:29, Yang wrote: > > On 2015/06/17 ...
5 years, 6 months ago (2015-06-19 10:14:22 UTC) #5
Michael Starzinger
LGTM on the implementation with a few comments. About the additional memory usage, I'll defer ...
5 years, 6 months ago (2015-06-19 11:17:08 UTC) #6
Yang
On 2015/06/19 11:17:08, Michael Starzinger wrote: > LGTM on the implementation with a few comments. ...
5 years, 6 months ago (2015-06-19 11:26:40 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183733006/100001
5 years, 6 months ago (2015-06-19 11:26:56 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/3761)
5 years, 6 months ago (2015-06-19 11:52:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183733006/120001
5 years, 6 months ago (2015-06-19 13:55:17 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-19 14:40:31 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 14:40:43 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c1669450834436508e0007885eb7ac266cbcf083
Cr-Commit-Position: refs/heads/master@{#29151}

Powered by Google App Engine
This is Rietveld 408576698