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

Issue 140963004: Array constructor shouldn't require a Cell, just an AllocationSite. (Closed)

Created:
6 years, 11 months ago by mvstanton
Modified:
6 years, 11 months ago
Reviewers:
Benedikt Meurer
CC:
v8-dev
Visibility:
Public.

Description

Array constructor shouldn't require a Cell, just an AllocationSite. The Array constructor has a needless dependency on an input argument that is a Cell. It uses this to walk through to an AllocationSite. The dependency hampers future work. Instead, pass the AllocationSite as input to the Array constructor. R=bmeurer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18716

Patch Set 1 #

Patch Set 2 : Ports, and removed a debug message. #

Total comments: 5

Patch Set 3 : Code comment updates. #

Total comments: 2

Patch Set 4 : Code comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -51 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 4 chunks +9 lines, -11 lines 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 4 chunks +9 lines, -11 lines 0 comments Download
M src/objects.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/runtime.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 4 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mvstanton
Hi Benedikt, here is a CL that removes a dependency on a type cell in ...
6 years, 11 months ago (2014-01-20 12:19:37 UTC) #1
Benedikt Meurer
https://codereview.chromium.org/140963004/diff/30001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (left): https://codereview.chromium.org/140963004/diff/30001/src/arm/code-stubs-arm.cc#oldcode5627 src/arm/code-stubs-arm.cc:5627: __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); Can we please keep this check? ...
6 years, 11 months ago (2014-01-20 12:24:21 UTC) #2
mvstanton
Updated, thx for comments! --Michael https://codereview.chromium.org/140963004/diff/30001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (left): https://codereview.chromium.org/140963004/diff/30001/src/arm/code-stubs-arm.cc#oldcode5627 src/arm/code-stubs-arm.cc:5627: __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); On ...
6 years, 11 months ago (2014-01-20 13:36:11 UTC) #3
Benedikt Meurer
LGTM, just one semantic comment https://codereview.chromium.org/140963004/diff/140001/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/140963004/diff/140001/src/runtime.cc#newcode14783 src/runtime.cc:14783: type_info->IsAllocationSite()) { Maybe I'm ...
6 years, 11 months ago (2014-01-21 06:32:39 UTC) #4
mvstanton
Okay, thanks very much, --Michael https://codereview.chromium.org/140963004/diff/140001/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/140963004/diff/140001/src/runtime.cc#newcode14783 src/runtime.cc:14783: type_info->IsAllocationSite()) { On 2014/01/21 ...
6 years, 11 months ago (2014-01-21 15:58:18 UTC) #5
mvstanton
6 years, 11 months ago (2014-01-21 16:04:50 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r18716 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698