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

Issue 1884143003: [compiler] Allow optimization of top-level eval code. (Closed)

Created:
4 years, 8 months ago by Michael Starzinger
Modified:
4 years, 7 months ago
Reviewers:
Benedikt Meurer, Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-simplify-13
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[compiler] Allow optimization of top-level eval code. This allows for top-level eval code to be parsed properly before doing optimization. It uses the same kind of re-parsing we already perform when compiling code for debugging. R=bmeurer@chromium.org Committed: https://crrev.com/22b4db544cf791a86bc3de1c665b9163657d7eea Cr-Commit-Position: refs/heads/master@{#36014}

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Add bailouts. #

Patch Set 4 : Special case for closure. #

Patch Set 5 : Rebased. #

Patch Set 6 : Fix assertion. #

Patch Set 7 : Fix da booog. #

Total comments: 5

Patch Set 8 : Skip timeouts. #

Total comments: 4

Patch Set 9 : Addressed comments. #

Total comments: 2

Patch Set 10 : Addressed comment. #

Patch Set 11 : Fix comment typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -16 lines) Patch
M src/compiler.cc View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -12 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 6 4 chunks +13 lines, -3 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M test/mozilla/mozilla.status View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Michael Starzinger
Benedikt: PTAL. Yang: FYI. https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc#newcode12777 src/objects.cc:12777: fun->end_position() == shared->end_position()) { I ...
4 years, 7 months ago (2016-05-03 16:39:12 UTC) #3
Benedikt Meurer
Wow, awesome! https://codereview.chromium.org/1884143003/diff/130001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/1884143003/diff/130001/src/compiler.cc#newcode422 src/compiler.cc:422: inline bool IsEvalToplevel(Handle<SharedFunctionInfo> shared) { Nit: You ...
4 years, 7 months ago (2016-05-03 17:22:08 UTC) #4
Yang
LGTM. Nice! https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc#newcode12777 src/objects.cc:12777: fun->end_position() == shared->end_position()) { On 2016/05/03 16:39:12, ...
4 years, 7 months ago (2016-05-03 19:08:46 UTC) #5
Benedikt Meurer
Forgot the important thing: LGTM :-)
4 years, 7 months ago (2016-05-04 03:52:26 UTC) #6
Michael Starzinger
Thanks! Addressed comments. https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc#newcode12777 src/objects.cc:12777: fun->end_position() == shared->end_position()) { On 2016/05/03 ...
4 years, 7 months ago (2016-05-04 07:39:04 UTC) #7
Yang
https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc#newcode12777 src/objects.cc:12777: fun->end_position() == shared->end_position()) { On 2016/05/04 07:39:04, Michael Starzinger ...
4 years, 7 months ago (2016-05-04 07:43:21 UTC) #8
Michael Starzinger
https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/110001/src/objects.cc#newcode12777 src/objects.cc:12777: fun->end_position() == shared->end_position()) { On 2016/05/04 07:43:21, Yang wrote: ...
4 years, 7 months ago (2016-05-04 07:56:17 UTC) #9
Yang
lgtm https://codereview.chromium.org/1884143003/diff/150001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/150001/src/objects.cc#newcode12776 src/objects.cc:12776: fun->start_position() == shared->start_position() && can we at least ...
4 years, 7 months ago (2016-05-04 08:17:43 UTC) #10
Michael Starzinger
Thanks! Addressed comments. Landing. https://codereview.chromium.org/1884143003/diff/150001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1884143003/diff/150001/src/objects.cc#newcode12776 src/objects.cc:12776: fun->start_position() == shared->start_position() && On ...
4 years, 7 months ago (2016-05-04 09:19:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1884143003/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1884143003/190001
4 years, 7 months ago (2016-05-04 10:45:37 UTC) #14
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years, 7 months ago (2016-05-04 10:57:00 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 10:59:19 UTC) #18
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/22b4db544cf791a86bc3de1c665b9163657d7eea
Cr-Commit-Position: refs/heads/master@{#36014}

Powered by Google App Engine
This is Rietveld 408576698