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

Unified Diff: src/objects.h

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed unnecessary class specifiers Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698