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

Issue 14990014: Collect type feedback in separate pass and store it in AST (Closed)

Created:
7 years, 7 months ago by rossberg
Modified:
7 years, 7 months ago
Reviewers:
Sven Panne
CC:
v8-dev, danno, Jakob Kummerow
Visibility:
Public.

Description

Collect type feedback in separate pass and store it in AST Notes: - For now, just adds the missing type info fields to the AST nodes directly.   I'd like to factor that out more nicely in a follow-up CL. - All type feedback now is uniformly collected through AST nodes'   RecordTypeFeedback functions. At some point, this logic should be moved   out of ast.cc. - The typing pass currently simulates the exact same conditions under   which feedback was collected in Hydrogen before. That also should be   made more generic in the future. - Type information itself is unchanged. Making it more regular is   yet more future work. Some additional cleanups: - Lifted out nested class ObjectLiteral::Property, to enable forward declaration. - Moved around some auxiliary enums. R=svenpanne@chromium.org BUG= Committed: http://code.google.com/p/v8/source/detail?r=14825

Patch Set 1 #

Patch Set 2 : Fixed header file definism #

Total comments: 12

Patch Set 3 : Address comments #

Patch Set 4 : Consistent check-alive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+804 lines, -240 lines) Patch
M src/ast.h View 1 2 25 chunks +112 lines, -47 lines 0 comments Download
M src/ast.cc View 9 chunks +72 lines, -6 lines 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/compiler.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M src/hydrogen.h View 10 chunks +2 lines, -14 lines 0 comments Download
M src/hydrogen.cc View 1 2 44 chunks +52 lines, -96 lines 0 comments Download
M src/type-info.h View 5 chunks +11 lines, -9 lines 0 comments Download
M src/type-info.cc View 4 chunks +7 lines, -31 lines 0 comments Download
A + src/typing.h View 1 1 chunk +35 lines, -29 lines 0 comments Download
A src/typing.cc View 1 2 3 1 chunk +504 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rossberg
7 years, 7 months ago (2013-05-14 15:03:50 UTC) #1
Sven Panne
https://codereview.chromium.org/14990014/diff/3001/src/ast.cc File src/ast.cc (right): https://codereview.chromium.org/14990014/diff/3001/src/ast.cc#newcode421 src/ast.cc:421: for_in_type_ = static_cast<ForInType>(oracle->ForInType(this)); Hmmm, where should types like ForInType ...
7 years, 7 months ago (2013-05-16 11:58:05 UTC) #2
rossberg
https://codereview.chromium.org/14990014/diff/3001/src/ast.cc File src/ast.cc (right): https://codereview.chromium.org/14990014/diff/3001/src/ast.cc#newcode421 src/ast.cc:421: for_in_type_ = static_cast<ForInType>(oracle->ForInType(this)); On 2013/05/16 11:58:05, Sven Panne wrote: ...
7 years, 7 months ago (2013-05-17 10:59:50 UTC) #3
Sven Panne
lgtm
7 years, 7 months ago (2013-05-17 11:29:26 UTC) #4
rossberg
7 years, 7 months ago (2013-05-27 13:59:43 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 manually as r14825 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698