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

Side by Side Diff: src/objects.h

Issue 19207002: Reland deprecation of HAllocateObject in favor of HAllocate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after
5498 MUST_USE_RESULT MaybeObject* Copy(); 5498 MUST_USE_RESULT MaybeObject* Copy();
5499 5499
5500 // Returns the next free property index (only valid for FAST MODE). 5500 // Returns the next free property index (only valid for FAST MODE).
5501 int NextFreePropertyIndex(); 5501 int NextFreePropertyIndex();
5502 5502
5503 // Returns the number of properties described in instance_descriptors 5503 // Returns the number of properties described in instance_descriptors
5504 // filtering out properties with the specified attributes. 5504 // filtering out properties with the specified attributes.
5505 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, 5505 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS,
5506 PropertyAttributes filter = NONE); 5506 PropertyAttributes filter = NONE);
5507 5507
5508 // Returns the number of slots allocated for the initial properties
5509 // backing storage for instances of this map.
5510 int InitialPropertiesLength() {
5511 return pre_allocated_property_fields() + unused_property_fields() -
5512 inobject_properties();
5513 }
5514
5508 // Casting. 5515 // Casting.
5509 static inline Map* cast(Object* obj); 5516 static inline Map* cast(Object* obj);
5510 5517
5511 // Locate an accessor in the instance descriptor. 5518 // Locate an accessor in the instance descriptor.
5512 AccessorDescriptor* FindAccessor(Name* name); 5519 AccessorDescriptor* FindAccessor(Name* name);
5513 5520
5514 // Code cache operations. 5521 // Code cache operations.
5515 5522
5516 // Clears the code cache. 5523 // Clears the code cache.
5517 inline void ClearCodeCache(Heap* heap); 5524 inline void ClearCodeCache(Heap* heap);
(...skipping 4294 matching lines...) Expand 10 before | Expand all | Expand 10 after
9812 } else { 9819 } else {
9813 value &= ~(1 << bit_position); 9820 value &= ~(1 << bit_position);
9814 } 9821 }
9815 return value; 9822 return value;
9816 } 9823 }
9817 }; 9824 };
9818 9825
9819 } } // namespace v8::internal 9826 } } // namespace v8::internal
9820 9827
9821 #endif // V8_OBJECTS_H_ 9828 #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