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

Issue 149458: Remove the descriptor stream abstractions.... (Closed)

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

Description

Remove the descriptor stream abstractions. The abstractions have led to bugs because it looks like descriptor streams are GC safe but they are not. I have moved the descriptor stream helper functions to descriptor arrays and I find most of the code just as readable now as it was before. Committed: http://code.google.com/p/v8/source/detail?r=2428

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -261 lines) Patch
M src/bootstrapper.cc View 1 chunk +9 lines, -17 lines 0 comments Download
M src/factory.cc View 2 chunks +7 lines, -13 lines 4 comments Download
M src/handles.cc View 2 chunks +12 lines, -10 lines 0 comments Download
M src/objects.h View 1 chunk +14 lines, -1 line 0 comments Download
M src/objects.cc View 16 chunks +85 lines, -86 lines 0 comments Download
M src/objects-debug.cc View 3 chunks +36 lines, -28 lines 0 comments Download
M src/objects-inl.h View 2 chunks +57 lines, -0 lines 0 comments Download
M src/property.h View 1 chunk +0 lines, -86 lines 0 comments Download
M src/property.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M src/spaces.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/string-stream.cc View 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
11 years, 5 months ago (2009-07-10 15:16:23 UTC) #1
iposva
LGTM -ip http://codereview.chromium.org/149458/diff/1/11 File src/factory.cc (right): http://codereview.chromium.org/149458/diff/1/11#newcode575 Line 575: result->SetFrom(descriptor_count++, *array, i); This would probably ...
11 years, 5 months ago (2009-07-10 16:36:15 UTC) #2
Mads Ager (chromium)
11 years, 5 months ago (2009-07-10 19:21:08 UTC) #3
http://codereview.chromium.org/149458/diff/1/11
File src/factory.cc (right):

http://codereview.chromium.org/149458/diff/1/11#newcode575
Line 575: result->SetFrom(descriptor_count++, *array, i);
On 2009/07/10 16:36:15, iposva wrote:
> This would probably be more readable if SetFrom was renamed to CopyFrom, which
> to me indicates that you are copying an entry from one descriptor array to the
> target index.

I agree.  Thanks.

http://codereview.chromium.org/149458/diff/1/11#newcode595
Line 595: // We do not use a DescriptorWriter because SymbolFromString can
On 2009/07/10 16:36:15, iposva wrote:
> The DescriptorWriter comment is now outdated here.

Whoops, done.

Powered by Google App Engine
This is Rietveld 408576698