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

Side by Side Diff: src/objects-debug.cc

Issue 9310117: Implement KeyedStoreICs to grow arrays on out-of-bound stores. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add missing WB stub Created 8 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution. 11 // with the distribution.
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 if (GetElementsKind() == NON_STRICT_ARGUMENTS_ELEMENTS) { 273 if (GetElementsKind() == NON_STRICT_ARGUMENTS_ELEMENTS) {
274 ASSERT(this->elements()->IsFixedArray()); 274 ASSERT(this->elements()->IsFixedArray());
275 ASSERT(this->elements()->length() >= 2); 275 ASSERT(this->elements()->length() >= 2);
276 } 276 }
277 277
278 if (HasFastProperties()) { 278 if (HasFastProperties()) {
279 CHECK_EQ(map()->unused_property_fields(), 279 CHECK_EQ(map()->unused_property_fields(),
280 (map()->inobject_properties() + properties()->length() - 280 (map()->inobject_properties() + properties()->length() -
281 map()->NextFreePropertyIndex())); 281 map()->NextFreePropertyIndex()));
282 } 282 }
283 ASSERT_EQ((map()->has_fast_elements() || map()->has_fast_smi_only_elements()), 283 ASSERT_EQ((map()->has_fast_elements() ||
284 map()->has_fast_smi_only_elements() ||
285 (elements() == GetHeap()->empty_fixed_array())),
284 (elements()->map() == GetHeap()->fixed_array_map() || 286 (elements()->map() == GetHeap()->fixed_array_map() ||
285 elements()->map() == GetHeap()->fixed_cow_array_map())); 287 elements()->map() == GetHeap()->fixed_cow_array_map()));
286 ASSERT(map()->has_fast_elements() == HasFastElements()); 288 ASSERT(map()->has_fast_elements() == HasFastElements());
287 } 289 }
288 290
289 291
290 void Map::MapVerify() { 292 void Map::MapVerify() {
291 ASSERT(!HEAP->InNewSpace(this)); 293 ASSERT(!HEAP->InNewSpace(this));
292 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); 294 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE);
293 ASSERT(instance_size() == kVariableSizeSentinel || 295 ASSERT(instance_size() == kVariableSizeSentinel ||
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 ASSERT(e->IsUndefined()); 856 ASSERT(e->IsUndefined());
855 } 857 }
856 } 858 }
857 } 859 }
858 } 860 }
859 861
860 862
861 #endif // DEBUG 863 #endif // DEBUG
862 864
863 } } // namespace v8::internal 865 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698