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

Issue 1213203007: Create a internal, global native context used only for generated code stubs (Closed)

Created:
5 years, 5 months ago by danno
Modified:
5 years, 5 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Create a internal native context used only for TF-generated code stubs Until now, TF-generated code stubs piggy-backed off of the builtin context. Since generation of code stubs is lazy, stubs generated at different times in different native contexts would contain embedded pointers different builtin contexts, leading to cross-context references and memory leaks. After this CL, all TF-generated code stubs are generated inside a internal thinned-out, native context that lives solely for the purpose of hosting generated code stubs. Committed: https://crrev.com/a1475dae5d147cac78812cd4fd09f886b51a88ef Cr-Commit-Position: refs/heads/master@{#29593}

Patch Set 1 #

Patch Set 2 : Latest #

Patch Set 3 : Polish #

Patch Set 4 : Latest #

Patch Set 5 : Cleanup #

Patch Set 6 : Merge with ToT #

Patch Set 7 : Fix bugs #

Patch Set 8 : One more time #

Patch Set 9 : Merge with latest #

Total comments: 14

Patch Set 10 : Rebase on ToT #

Patch Set 11 : Rebase on ToT #

Patch Set 12 : Add missing file #

Total comments: 6

Patch Set 13 : Review feedback #

Total comments: 10

Patch Set 14 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -156 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +41 lines, -0 lines 0 comments Download
M src/bootstrapper.h View 1 2 3 4 5 3 chunks +14 lines, -1 line 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 10 21 chunks +120 lines, -39 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -5 lines 0 comments Download
A src/code-stubs.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +69 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -1 line 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -70 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/runtime/runtime-test.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/snapshot/natives.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/snapshot/natives-external.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M src/snapshot/serialize.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -1 line 0 comments Download
M src/snapshot/serialize.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +70 lines, -21 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -3 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +11 lines, -6 lines 0 comments Download
M test/cctest/test-object-observe.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/compiler/stubs/floor-stub.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
danno
Please take a look, with special focus on: - Yang: Serialization changes - Michi: Boostrapper ...
5 years, 5 months ago (2015-07-07 12:26:07 UTC) #3
Yang
some comments. https://codereview.chromium.org/1213203007/diff/220001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1213203007/diff/220001/src/bootstrapper.cc#newcode1106 src/bootstrapper.cc:1106: Do you really need Number, Boolean, String, ...
5 years, 5 months ago (2015-07-08 08:32:54 UTC) #6
danno
Please take another look https://codereview.chromium.org/1213203007/diff/220001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1213203007/diff/220001/src/bootstrapper.cc#newcode1106 src/bootstrapper.cc:1106: On 2015/07/08 08:32:53, Yang wrote: ...
5 years, 5 months ago (2015-07-08 20:25:59 UTC) #7
Yang
serializer part lgtm with comments. https://codereview.chromium.org/1213203007/diff/280001/src/snapshot/serialize.cc File src/snapshot/serialize.cc (right): https://codereview.chromium.org/1213203007/diff/280001/src/snapshot/serialize.cc#newcode1194 src/snapshot/serialize.cc:1194: case kNativesStringResource: { no ...
5 years, 5 months ago (2015-07-10 08:18:57 UTC) #12
danno
On 2015/07/10 at 08:18:57, yangguo wrote: > serializer part lgtm with comments. > > https://codereview.chromium.org/1213203007/diff/280001/src/snapshot/serialize.cc ...
5 years, 5 months ago (2015-07-10 12:29:28 UTC) #13
Michael Starzinger
LGTM, mostly nits, didn't look at the serializer. https://codereview.chromium.org/1213203007/diff/320001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/1213203007/diff/320001/src/code-stubs.cc#newcode471 src/code-stubs.cc:471: isolate, ...
5 years, 5 months ago (2015-07-10 13:26:30 UTC) #14
danno
Feedback addressed, landing https://codereview.chromium.org/1213203007/diff/280001/src/snapshot/serialize.cc File src/snapshot/serialize.cc (right): https://codereview.chromium.org/1213203007/diff/280001/src/snapshot/serialize.cc#newcode1194 src/snapshot/serialize.cc:1194: case kNativesStringResource: { On 2015/07/10 at ...
5 years, 5 months ago (2015-07-13 09:43:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1213203007/340001
5 years, 5 months ago (2015-07-13 09:43:46 UTC) #18
commit-bot: I haz the power
Committed patchset #14 (id:340001)
5 years, 5 months ago (2015-07-13 09:45:47 UTC) #19
commit-bot: I haz the power
5 years, 5 months ago (2015-07-13 09:46:02 UTC) #20
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/a1475dae5d147cac78812cd4fd09f886b51a88ef
Cr-Commit-Position: refs/heads/master@{#29593}

Powered by Google App Engine
This is Rietveld 408576698