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

Side by Side Diff: src/objects.h

Issue 15714005: Deprecate HAllocateObject in favor of HAllocate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Hannes Payer. Created 7 years, 6 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/mips/lithium-mips.cc ('k') | src/x64/lithium-codegen-x64.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 2012 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
(...skipping 5421 matching lines...) Expand 10 before | Expand all | Expand 10 after
5432 MUST_USE_RESULT MaybeObject* Copy(); 5432 MUST_USE_RESULT MaybeObject* Copy();
5433 5433
5434 // Returns the next free property index (only valid for FAST MODE). 5434 // Returns the next free property index (only valid for FAST MODE).
5435 int NextFreePropertyIndex(); 5435 int NextFreePropertyIndex();
5436 5436
5437 // Returns the number of properties described in instance_descriptors 5437 // Returns the number of properties described in instance_descriptors
5438 // filtering out properties with the specified attributes. 5438 // filtering out properties with the specified attributes.
5439 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, 5439 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS,
5440 PropertyAttributes filter = NONE); 5440 PropertyAttributes filter = NONE);
5441 5441
5442 // Returns the number of slots allocated for the initial properties
5443 // backing storage for instances of this map.
5444 int InitialPropertiesLength() {
5445 return pre_allocated_property_fields() + unused_property_fields() -
5446 inobject_properties();
5447 }
5448
5442 // Casting. 5449 // Casting.
5443 static inline Map* cast(Object* obj); 5450 static inline Map* cast(Object* obj);
5444 5451
5445 // Locate an accessor in the instance descriptor. 5452 // Locate an accessor in the instance descriptor.
5446 AccessorDescriptor* FindAccessor(Name* name); 5453 AccessorDescriptor* FindAccessor(Name* name);
5447 5454
5448 // Code cache operations. 5455 // Code cache operations.
5449 5456
5450 // Clears the code cache. 5457 // Clears the code cache.
5451 inline void ClearCodeCache(Heap* heap); 5458 inline void ClearCodeCache(Heap* heap);
(...skipping 4177 matching lines...) Expand 10 before | Expand all | Expand 10 after
9629 } else { 9636 } else {
9630 value &= ~(1 << bit_position); 9637 value &= ~(1 << bit_position);
9631 } 9638 }
9632 return value; 9639 return value;
9633 } 9640 }
9634 }; 9641 };
9635 9642
9636 } } // namespace v8::internal 9643 } } // namespace v8::internal
9637 9644
9638 #endif // V8_OBJECTS_H_ 9645 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698