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

Side by Side Diff: src/objects-inl.h

Issue 8256012: Remove some asserts to speed up debug mode. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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/mark-compact-inl.h ('k') | src/spaces.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 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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 int HeapNumber::get_sign() { 1293 int HeapNumber::get_sign() {
1294 return READ_INT_FIELD(this, kExponentOffset) & kSignMask; 1294 return READ_INT_FIELD(this, kExponentOffset) & kSignMask;
1295 } 1295 }
1296 1296
1297 1297
1298 ACCESSORS(JSObject, properties, FixedArray, kPropertiesOffset) 1298 ACCESSORS(JSObject, properties, FixedArray, kPropertiesOffset)
1299 1299
1300 1300
1301 FixedArrayBase* JSObject::elements() { 1301 FixedArrayBase* JSObject::elements() {
1302 Object* array = READ_FIELD(this, kElementsOffset); 1302 Object* array = READ_FIELD(this, kElementsOffset);
1303 ASSERT(array->HasValidElements());
1304 return static_cast<FixedArrayBase*>(array); 1303 return static_cast<FixedArrayBase*>(array);
1305 } 1304 }
1306 1305
1307 void JSObject::ValidateSmiOnlyElements() { 1306 void JSObject::ValidateSmiOnlyElements() {
1308 #if DEBUG 1307 #if DEBUG
1309 if (map()->elements_kind() == FAST_SMI_ONLY_ELEMENTS) { 1308 if (map()->elements_kind() == FAST_SMI_ONLY_ELEMENTS) {
1310 Heap* heap = GetHeap(); 1309 Heap* heap = GetHeap();
1311 // Don't use elements, since integrity checks will fail if there 1310 // Don't use elements, since integrity checks will fail if there
1312 // are filler pointers in the array. 1311 // are filler pointers in the array.
1313 FixedArray* fixed_array = 1312 FixedArray* fixed_array =
(...skipping 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after
4634 #undef WRITE_INT_FIELD 4633 #undef WRITE_INT_FIELD
4635 #undef READ_SHORT_FIELD 4634 #undef READ_SHORT_FIELD
4636 #undef WRITE_SHORT_FIELD 4635 #undef WRITE_SHORT_FIELD
4637 #undef READ_BYTE_FIELD 4636 #undef READ_BYTE_FIELD
4638 #undef WRITE_BYTE_FIELD 4637 #undef WRITE_BYTE_FIELD
4639 4638
4640 4639
4641 } } // namespace v8::internal 4640 } } // namespace v8::internal
4642 4641
4643 #endif // V8_OBJECTS_INL_H_ 4642 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/mark-compact-inl.h ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698