Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index b2cb07c9bf82a7d6fd8a5fe6d186e92ce0cfd580..3d2ccb21774e3b43b9f1f8fcf92dc6032582730d 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -4981,7 +4981,7 @@ class Map: public HeapObject { |
| set_bit_field3(EnumLengthBits::update(bit_field3(), length)); |
| } |
| - |
| + inline bool CanTrackAllocationSite(); |
| inline bool owns_descriptors(); |
| inline void set_owns_descriptors(bool is_shared); |
| inline bool is_observed(); |
| @@ -6911,6 +6911,8 @@ enum AllocationSiteInfoMode { |
| }; |
| + |
|
Toon Verwaest
2013/01/16 10:53:42
Trim empty lines down to 2.
mvstanton
2013/01/16 13:01:56
Done.
|
| + |
| class AllocationSiteInfo: public Struct { |
| public: |
| DECL_ACCESSORS(payload, Object) |
| @@ -6923,6 +6925,10 @@ class AllocationSiteInfo: public Struct { |
| // Returns NULL if no AllocationSiteInfo is available for object. |
| static AllocationSiteInfo* FindForJSObject(JSObject* object); |
| + static AllocationSiteInfoMode GetMode(); |
|
Toon Verwaest
2013/01/16 10:53:42
Just use the flag if no other arguments are requir
mvstanton
2013/01/16 13:01:56
Done.
|
| + static AllocationSiteInfoMode GetMode(ElementsKind boilerplate_elements_kind); |
| + static AllocationSiteInfoMode GetMode(ElementsKind from, ElementsKind to); |
| + |
| static const int kPayloadOffset = HeapObject::kHeaderSize; |
| static const int kSize = kPayloadOffset + kPointerSize; |