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

Issue 11299190: Make ElementsAccessors more tolerant of varying backing store types (Closed)

Created:
8 years ago by adamk
Modified:
8 years ago
Reviewers:
Toon Verwaest
CC:
v8-dev, rossberg, rafaelw
Visibility:
Public.

Description

Make ElementsAccessors more tolerant of varying backing store types This avoids bogus calls to Fixed*Array::cast() when FastElements-backed objects are empty (and thus backed by empty_fixed_array). Committed: https://code.google.com/p/v8/source/detail?r=13071

Patch Set 1 #

Patch Set 2 : No empty_fixed_array checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -22 lines) Patch
M src/elements.cc View 1 7 chunks +16 lines, -13 lines 0 comments Download
A + test/mjsunit/regress/regress-observe-empty-double-array.js View 1 chunk +9 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
adamk
It seems like it might be cleaner to put these empty_fixed_array checks in elements.cc instead ...
8 years ago (2012-11-27 01:35:40 UTC) #1
Toon Verwaest
I would prefer replacing the BackingStore::cast call with BackingStore::castOrEmptyFixedArray. Currently castOrEmptyFixedArray only exists for FixedDoubleArray, ...
8 years ago (2012-11-27 08:34:00 UTC) #2
adamk
Good feedback. I've updated this patch to pass FixedArrayBase down further in GetCapacityImpl and GetAttributsImpl.
8 years ago (2012-11-27 18:27:56 UTC) #3
Toon Verwaest
8 years ago (2012-11-28 08:41:35 UTC) #4
lgtm, landing.

Powered by Google App Engine
This is Rietveld 408576698