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

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

Issue 7840031: JSArray can go slow case during String.split. Guard against (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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 | « no previous file | src/runtime.cc » ('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 2011 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
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 251
252 void JSObject::JSObjectVerify() { 252 void JSObject::JSObjectVerify() {
253 VerifyHeapPointer(properties()); 253 VerifyHeapPointer(properties());
254 VerifyHeapPointer(elements()); 254 VerifyHeapPointer(elements());
255 if (HasFastProperties()) { 255 if (HasFastProperties()) {
256 CHECK_EQ(map()->unused_property_fields(), 256 CHECK_EQ(map()->unused_property_fields(),
257 (map()->inobject_properties() + properties()->length() - 257 (map()->inobject_properties() + properties()->length() -
258 map()->NextFreePropertyIndex())); 258 map()->NextFreePropertyIndex()));
259 } 259 }
260 ASSERT(map()->has_fast_elements() == 260 ASSERT_EQ(map()->has_fast_elements(),
261 (elements()->map() == GetHeap()->fixed_array_map() || 261 (elements()->map() == GetHeap()->fixed_array_map() ||
262 elements()->map() == GetHeap()->fixed_cow_array_map())); 262 elements()->map() == GetHeap()->fixed_cow_array_map()));
263 ASSERT(map()->has_fast_elements() == HasFastElements()); 263 ASSERT(map()->has_fast_elements() == HasFastElements());
264 } 264 }
265 265
266 266
267 void Map::MapVerify() { 267 void Map::MapVerify() {
268 ASSERT(!HEAP->InNewSpace(this)); 268 ASSERT(!HEAP->InNewSpace(this));
269 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE); 269 ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE);
270 ASSERT(instance_size() == kVariableSizeSentinel || 270 ASSERT(instance_size() == kVariableSizeSentinel ||
271 (kPointerSize <= instance_size() && 271 (kPointerSize <= instance_size() &&
272 instance_size() < HEAP->Capacity())); 272 instance_size() < HEAP->Capacity()));
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 ASSERT(e->IsUndefined()); 796 ASSERT(e->IsUndefined());
797 } 797 }
798 } 798 }
799 } 799 }
800 } 800 }
801 801
802 802
803 #endif // DEBUG 803 #endif // DEBUG
804 804
805 } } // namespace v8::internal 805 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698