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

Issue 2342133003: Don't force eager parsing when natives are allowed. (Closed)

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

Description

Don't force eager parsing when natives are allowed. PreParser is already capable of handling natives, because ParseV8Intrinsic was moved to ParserBase. There's no reason to force eager parsing when natives are allowed. R=nikolaos@chromium.org, mstarzinger@chromium.org BUG=v8:5398 Committed: https://crrev.com/f7fadf268c097f4f0c1cc105b91336d876e3c7ba Cr-Commit-Position: refs/heads/master@{#39501}

Patch Set 1 #

Patch Set 2 : ... but eager parse native scripts #

Patch Set 3 : cleaner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M src/parsing/parser.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 33 (19 generated)
marja
ptal
4 years, 3 months ago (2016-09-16 12:29:00 UTC) #3
nickie
Other than the title, which should be (I think) "Don't force eager compilation...", I think ...
4 years, 3 months ago (2016-09-16 13:28:55 UTC) #6
marja
oops, yes, the title was the wrong way around :) adamk, could you have a ...
4 years, 3 months ago (2016-09-16 18:15:28 UTC) #10
adamk
I was under the impression that this behavior existed to make sure that the context ...
4 years, 3 months ago (2016-09-16 20:40:49 UTC) #12
marja
yangguo@ is on a leave; substituting w/ vogelheim@ to comment the snapshot aspect.
4 years, 3 months ago (2016-09-19 07:39:09 UTC) #14
marja
... maybe we can force eager compilation for the needed files (containing the native function ...
4 years, 3 months ago (2016-09-19 07:40:18 UTC) #15
marja
Despite the green try jobs, this CL is wrong: we indeed need a more clever ...
4 years, 3 months ago (2016-09-19 08:11:02 UTC) #16
marja
vogelheim@, ptal Ok, now I think I got this under control. This CL cleans up ...
4 years, 3 months ago (2016-09-19 08:50:00 UTC) #21
marja
(Also, I found out that is_native() is the thing we should be checking to get ...
4 years, 3 months ago (2016-09-19 08:50:54 UTC) #22
vogelheim
lgtm
4 years, 3 months ago (2016-09-19 11:36:06 UTC) #25
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/2342133003/40001
4 years, 3 months ago (2016-09-19 11:43:51 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-19 11:46:07 UTC) #30
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f7fadf268c097f4f0c1cc105b91336d876e3c7ba Cr-Commit-Position: refs/heads/master@{#39501}
4 years, 3 months ago (2016-09-19 11:47:08 UTC) #32
Yang
4 years, 2 months ago (2016-10-11 06:59:00 UTC) #33
Message was sent while issue was closed.
On 2016/09/19 11:47:08, commit-bot: I haz the power wrote:
> Patchset 3 (id:??) landed as
> https://crrev.com/f7fadf268c097f4f0c1cc105b91336d876e3c7ba
> Cr-Commit-Position: refs/heads/master@{#39501}

To answer the question above. I don't know why lazy parsing is not allowed for
natives. I faintly remember it somehow related to parsing natives syntax, but
that may long be out of date. It's definitely not done for the snapshot, since
we generally don't include any compiled JS code in the snapshot at all.

Powered by Google App Engine
This is Rietveld 408576698