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

Issue 115347: Reduce the memory used by frame elements from two words to one by... (Closed)

Created:
11 years, 7 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Reduce the memory used by frame elements from two words to one by encoding the values in one word and by using an indirection table for handles. This reduces compilation time by roughly 10% and we should be able to make the slow case equality checking of frame elements faster as well. Committed: http://code.google.com/p/v8/source/detail?r=1949

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -253 lines) Patch
M src/arm/virtual-frame-arm.h View 1 chunk +0 lines, -12 lines 0 comments Download
M src/compiler.h View 2 chunks +15 lines, -0 lines 2 comments Download
M src/compiler.cc View 2 chunks +2 lines, -2 lines 2 comments Download
A src/frame-element.h View 1 chunk +263 lines, -0 lines 2 comments Download
M src/ia32/virtual-frame-ia32.h View 1 chunk +0 lines, -12 lines 0 comments Download
M src/jump-target.h View 2 chunks +7 lines, -3 lines 0 comments Download
M src/jump-target.cc View 3 chunks +3 lines, -2 lines 2 comments Download
A src/jump-target-inl.h View 1 chunk +44 lines, -0 lines 0 comments Download
M src/register-allocator.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/register-allocator-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/virtual-frame.h View 1 chunk +1 line, -198 lines 2 comments Download
M src/virtual-frame.cc View 2 chunks +4 lines, -21 lines 0 comments Download
M src/zone.h View 1 chunk +7 lines, -2 lines 0 comments Download
M tools/gyp/v8.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M tools/visual_studio/v8_base.vcproj View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mads Ager (chromium)
11 years, 7 months ago (2009-05-14 11:21:52 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/115347/diff/1/8 File src/compiler.cc (right): http://codereview.chromium.org/115347/diff/1/8#newcode104 Line 104: CompilationZoneScope zone_scope(DELETE_ON_EXIT); Do you ever have CompilationZoneScope ...
11 years, 7 months ago (2009-05-14 11:26:16 UTC) #2
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/115347/diff/1/11 File src/compiler.h (right): http://codereview.chromium.org/115347/diff/1/11#newcode33 Line 33: #include "frame-element.h" Is it OK to alphabetize ...
11 years, 7 months ago (2009-05-14 11:29:01 UTC) #3
Mads Ager (chromium)
11 years, 7 months ago (2009-05-14 11:42:40 UTC) #4
http://codereview.chromium.org/115347/diff/1/8
File src/compiler.cc (right):

http://codereview.chromium.org/115347/diff/1/8#newcode104
Line 104: CompilationZoneScope zone_scope(DELETE_ON_EXIT);
On 2009/05/14 11:26:16, Kasper Lund wrote:
> Do you ever have CompilationZoneScope that aren't DELETE_ON_EXIT? You could
> remove the constructor parameter...

Done.

http://codereview.chromium.org/115347/diff/1/11
File src/compiler.h (right):

http://codereview.chromium.org/115347/diff/1/11#newcode33
Line 33: #include "frame-element.h"
On 2009/05/14 11:29:02, Kevin Millikin wrote:
> Is it OK to alphabetize these?

It is.  Done.

http://codereview.chromium.org/115347/diff/1/12
File src/frame-element.h (right):

http://codereview.chromium.org/115347/diff/1/12#newcode145
Line 145: StaticType static_type() { return
StaticType(StaticTypeField::decode(value_)); }
On 2009/05/14 11:26:16, Kasper Lund wrote:
> Line too long?

Done.

http://codereview.chromium.org/115347/diff/1/7
File src/jump-target.cc (right):

http://codereview.chromium.org/115347/diff/1/7#newcode32
Line 32: #include "jump-target-inl.h"
On 2009/05/14 11:29:02, Kevin Millikin wrote:
> Same question.

Done.

http://codereview.chromium.org/115347/diff/1/10
File src/virtual-frame.h (right):

http://codereview.chromium.org/115347/diff/1/10#newcode32
Line 32: #include "frame-element.h"
On 2009/05/14 11:29:02, Kevin Millikin wrote:
> Again.

Done.

Powered by Google App Engine
This is Rietveld 408576698