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

Unified Diff: src/objects-inl.h

Issue 11280054: Ensure CopyElementsImpl is always executed so it fills in holes even if from_size is 0. Allow Fixed… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added castOrEmptyFixedArray Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/array-store-and-grow.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 7db9175d41d6604d0f1f12ee2b92753fb412a618..b2efe2b2a84549799fb916f6edde90556bf6f984 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2342,6 +2342,13 @@ void SeededNumberDictionary::set_requires_slow_elements() {
// Cast operations
+FixedDoubleArray* FixedDoubleArray::castOrEmptyFixedArray(Object* object) {
+ ASSERT(object == HeapObject::cast(object)->GetHeap()->empty_fixed_array() ||
+ object->IsFixedDoubleArray());
+ return reinterpret_cast<FixedDoubleArray*>(object);
+}
+
+
CAST_ACCESSOR(FixedArray)
CAST_ACCESSOR(FixedDoubleArray)
CAST_ACCESSOR(DescriptorArray)
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/array-store-and-grow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698