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

Issue 2684033007: Allow a ParseInfo without a script for %SetCode users (Closed)

Created:
3 years, 10 months ago by mvstanton
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

This is a workaround for the fact that %SetCode can "lose" the script for a js native. If the js native is re-initialized (for a Realm or something), then the source SharedFunctionInfo won't have a script anymore. Nonetheless, we may want to optimize the function. If we've compiled bytecode, then we can compile optimized code without a script. Here, we carve out a special exception for this case, so that we can turn on the --mark-shared-functions-for-tier-up. BUG=v8:5946 R=leszeks@chromium.org Review-Url: https://codereview.chromium.org/2684033007 Cr-Original-Commit-Position: refs/heads/master@{#43240} Committed: https://chromium.googlesource.com/v8/v8/+/4123a3dd790495c40cf839990318a85c146e057d Review-Url: https://codereview.chromium.org/2684033007 Cr-Commit-Position: refs/heads/master@{#43252} Committed: https://chromium.googlesource.com/v8/v8/+/ae8f28208f2bd41cee49a4db5a7b5b5b92114842

Patch Set 1 #

Total comments: 1

Patch Set 2 : Make ASAN happy. #

Patch Set 3 : Some comments. #

Total comments: 14

Patch Set 4 : Code comments. #

Total comments: 1

Patch Set 5 : REBASE + removed file. #

Patch Set 6 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -83 lines) Patch
M src/compiler.cc View 1 2 3 4 5 chunks +17 lines, -17 lines 0 comments Download
M src/compiler/pipeline.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 3 chunks +16 lines, -8 lines 0 comments Download
M src/parsing/parse-info.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/parsing/parse-info.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M src/source-position.cc View 1 2 3 3 chunks +24 lines, -13 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M test/mjsunit/shared-function-tier-up-ignition.js View 1 2 3 4 1 chunk +0 lines, -43 lines 0 comments Download

Messages

Total messages: 74 (55 generated)
mvstanton
Hi Leszek, here is the code we discussed, thx for the look! --Michael
3 years, 10 months ago (2017-02-09 13:17:53 UTC) #1
Leszek Swirski
https://codereview.chromium.org/2684033007/diff/1/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/2684033007/diff/1/src/runtime/runtime-function.cc#newcode179 src/runtime/runtime-function.cc:179: } Hm, I'm not sure I like your solution ...
3 years, 10 months ago (2017-02-09 13:22:32 UTC) #2
Leszek Swirski
https://codereview.chromium.org/2684033007/diff/1/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/2684033007/diff/1/src/runtime/runtime-function.cc#newcode179 src/runtime/runtime-function.cc:179: } Hm, I'm not sure I like your solution ...
3 years, 10 months ago (2017-02-09 13:22:33 UTC) #3
mvstanton
Hi Leszek, I've limited my efforts to fixing some locations in the compiler where we ...
3 years, 10 months ago (2017-02-13 12:04:57 UTC) #6
Leszek Swirski
On 2017/02/13 12:04:57, mvstanton wrote: > Hi Leszek, > > I've limited my efforts to ...
3 years, 10 months ago (2017-02-13 12:28:19 UTC) #8
mvstanton
Hi Leszek, hi Michi: If you guys could take a look that would be great. ...
3 years, 10 months ago (2017-02-15 14:36:11 UTC) #46
Michael Starzinger
LGTM once comments are addressed. https://codereview.chromium.org/2684033007/diff/180001/src/compiler/pipeline.cc File src/compiler/pipeline.cc (right): https://codereview.chromium.org/2684033007/diff/180001/src/compiler/pipeline.cc#newcode1755 src/compiler/pipeline.cc:1755: Isolate* isolate = function->shared()->GetIsolate(); ...
3 years, 10 months ago (2017-02-15 14:51:48 UTC) #47
Leszek Swirski
lgtm with nits. https://codereview.chromium.org/2684033007/diff/180001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2684033007/diff/180001/src/compiler.cc#newcode1076 src/compiler.cc:1076: case Compiler::BASELINE: { Can you add ...
3 years, 10 months ago (2017-02-15 14:58:37 UTC) #48
mvstanton
thanks guys! --Michael https://codereview.chromium.org/2684033007/diff/180001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2684033007/diff/180001/src/compiler.cc#newcode1076 src/compiler.cc:1076: case Compiler::BASELINE: { On 2017/02/15 14:58:37, ...
3 years, 10 months ago (2017-02-15 15:18:47 UTC) #51
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/2684033007/200001
3 years, 10 months ago (2017-02-15 15:19:01 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/34828)
3 years, 10 months ago (2017-02-15 15:21:51 UTC) #56
Leszek Swirski
https://codereview.chromium.org/2684033007/diff/200001/test/mjsunit/shared-function-tier-up-ignition.js File test/mjsunit/shared-function-tier-up-ignition.js (right): https://codereview.chromium.org/2684033007/diff/200001/test/mjsunit/shared-function-tier-up-ignition.js#newcode6 test/mjsunit/shared-function-tier-up-ignition.js:6: // Flags: --ignition-staging --turbo I just noticed this -- ...
3 years, 10 months ago (2017-02-15 17:09:49 UTC) #57
mvstanton
Hi Marja, Here are the changes we talked about a couple days ago. Could you ...
3 years, 10 months ago (2017-02-16 08:45:36 UTC) #59
marja
src/parsing lgtm
3 years, 10 months ago (2017-02-16 08:58:13 UTC) #60
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/2684033007/220001
3 years, 10 months ago (2017-02-16 09:51:36 UTC) #63
commit-bot: I haz the power
Committed patchset #5 (id:220001) as https://chromium.googlesource.com/v8/v8/+/4123a3dd790495c40cf839990318a85c146e057d
3 years, 10 months ago (2017-02-16 10:24:08 UTC) #66
Michael Achenbach
A revert of this CL (patchset #5 id:220001) has been created in https://codereview.chromium.org/2703553002/ by machenbach@chromium.org. ...
3 years, 10 months ago (2017-02-16 10:39:32 UTC) #67
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/2684033007/240001
3 years, 10 months ago (2017-02-16 14:15:16 UTC) #71
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 14:39:26 UTC) #74
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://chromium.googlesource.com/v8/v8/+/ae8f28208f2bd41cee49a4db5a7b5b5b921...

Powered by Google App Engine
This is Rietveld 408576698