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

Issue 1813803002: [compiler] Allocate SharedFunctionInfo before compile. (Closed)

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

Description

[compiler] Allocate SharedFunctionInfo before compile. This changes the compilation pipeline so that SharedFunctionInfo objects are always allocated before the various compilers are invoked. It is a preparation towards having that object available during compile time and hence reducing the dependency on FunctionLiteral and the need to copy a lot of the information into the CompilationInfo. Optimizing compilers already assume the SharedFunctionInfo is present and the baseline compilers have other heap accesses sprinkled throughout the compilation process. Duplicating statically available information from the SharedFunctionInfo within the CompilationInfo has no benefit. R=yangguo@chromium.org Committed: https://crrev.com/42c8812d15a452fa1ace3b4cb87aea4373601937 Cr-Commit-Position: refs/heads/master@{#34885}

Patch Set 1 #

Patch Set 2 : Fix failures. #

Patch Set 3 : Fix failures. #

Total comments: 2

Patch Set 4 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -71 lines) Patch
M src/compiler.cc View 1 2 3 8 chunks +56 lines, -64 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/factory.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/factory.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Michael Starzinger
4 years, 9 months ago (2016-03-17 15:55:14 UTC) #1
Yang
LGTM. Very nice! https://codereview.chromium.org/1813803002/diff/40001/src/compiler.cc File src/compiler.cc (left): https://codereview.chromium.org/1813803002/diff/40001/src/compiler.cc#oldcode1839 src/compiler.cc:1839: DCHECK(!existing->HasDebugCode()); Can we move this check ...
4 years, 9 months ago (2016-03-18 06:35:25 UTC) #2
Michael Starzinger
Thanks. Addressed comments. Landing now-ish. https://codereview.chromium.org/1813803002/diff/40001/src/compiler.cc File src/compiler.cc (left): https://codereview.chromium.org/1813803002/diff/40001/src/compiler.cc#oldcode1839 src/compiler.cc:1839: DCHECK(!existing->HasDebugCode()); On 2016/03/18 06:35:25, ...
4 years, 9 months ago (2016-03-18 10:05:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813803002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813803002/60001
4 years, 9 months ago (2016-03-18 10:37:23 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-18 10:46:45 UTC) #7
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 10:48:17 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/42c8812d15a452fa1ace3b4cb87aea4373601937
Cr-Commit-Position: refs/heads/master@{#34885}

Powered by Google App Engine
This is Rietveld 408576698