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

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

Issue 6639024: Get rid of distinction between below- and above-watermark in page allocation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 return IsSmi() || IsHeapNumber(); 326 return IsSmi() || IsHeapNumber();
327 } 327 }
328 328
329 329
330 bool Object::IsByteArray() { 330 bool Object::IsByteArray() {
331 return Object::IsHeapObject() 331 return Object::IsHeapObject()
332 && HeapObject::cast(this)->map()->instance_type() == BYTE_ARRAY_TYPE; 332 && HeapObject::cast(this)->map()->instance_type() == BYTE_ARRAY_TYPE;
333 } 333 }
334 334
335 335
336 bool Object::IsFiller() {
337 if (!Object::IsHeapObject()) return false;
338 InstanceType instance_type = HeapObject::cast(this)->map()->instance_type();
339 return instance_type == BYTE_ARRAY_TYPE || instance_type == FILLER_TYPE;
Vyacheslav Egorov (Chromium) 2011/03/15 09:20:09 maybe it is really time to make filler_array_type
Erik Corry 2011/03/17 13:39:17 It seems most places we do care whether it is FILL
340 }
341
342
336 bool Object::IsPixelArray() { 343 bool Object::IsPixelArray() {
337 return Object::IsHeapObject() && 344 return Object::IsHeapObject() &&
338 HeapObject::cast(this)->map()->instance_type() == PIXEL_ARRAY_TYPE; 345 HeapObject::cast(this)->map()->instance_type() == PIXEL_ARRAY_TYPE;
339 } 346 }
340 347
341 348
342 bool Object::IsExternalArray() { 349 bool Object::IsExternalArray() {
343 if (!Object::IsHeapObject()) 350 if (!Object::IsHeapObject())
344 return false; 351 return false;
345 InstanceType instance_type = 352 InstanceType instance_type =
(...skipping 3452 matching lines...) Expand 10 before | Expand all | Expand 10 after
3798 #undef WRITE_INT_FIELD 3805 #undef WRITE_INT_FIELD
3799 #undef READ_SHORT_FIELD 3806 #undef READ_SHORT_FIELD
3800 #undef WRITE_SHORT_FIELD 3807 #undef WRITE_SHORT_FIELD
3801 #undef READ_BYTE_FIELD 3808 #undef READ_BYTE_FIELD
3802 #undef WRITE_BYTE_FIELD 3809 #undef WRITE_BYTE_FIELD
3803 3810
3804 3811
3805 } } // namespace v8::internal 3812 } } // namespace v8::internal
3806 3813
3807 #endif // V8_OBJECTS_INL_H_ 3814 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698