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

Unified Diff: src/objects.h

Issue 11818021: Allocation Info Tracking, continued. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A partial delta against Toon's previous review Created 7 years, 10 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
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 92b1f0d0364dab741a21c221b6dac1ca0eba7b61..791138528cbf71020311156f938fb15291737777 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2029,7 +2029,7 @@ class JSObject: public JSReceiver {
ElementsKind to_kind);
MUST_USE_RESULT MaybeObject* TransitionElementsKind(ElementsKind to_kind);
- MUST_USE_RESULT MaybeObject* PossiblyTransitionArrayBoilerplate(
+ MUST_USE_RESULT MaybeObject* UpdateAllocationSiteInfo(
ElementsKind to_kind);
// Replaces an existing transition with a transition to a map with a FIELD.
@@ -4180,7 +4180,7 @@ class TypeFeedbackCells: public FixedArray {
// The object that indicates a monomorphic state of Array with
// ElementsKind
- static inline Handle<Object> MonomorphicArraySentinel(
+ static inline Handle<Object> MonomorphicArraySentinel(Isolate* isolate,
ElementsKind elements_kind);
// A raw version of the uninitialized sentinel that's safe to read during
@@ -7046,8 +7046,6 @@ enum AllocationSiteMode {
};
-
-
class AllocationSiteInfo: public Struct {
public:
DECL_ACCESSORS(payload, Object)
@@ -7065,6 +7063,7 @@ class AllocationSiteInfo: public Struct {
static const int kPayloadOffset = HeapObject::kHeaderSize;
static const int kSize = kPayloadOffset + kPointerSize;
+ static const uint32_t kMaximumArrayBytesToPretransition = 8 * 1024;
bool GetElementsKindPayload(ElementsKind* kind);
private:
@@ -8353,7 +8352,7 @@ class JSArray: public JSObject {
// Initialize the array with the given capacity. The function may
// fail due to out-of-memory situations, but only if the requested
// capacity is non-zero.
- MUST_USE_RESULT MaybeObject* Initialize(int capacity);
+ MUST_USE_RESULT MaybeObject* Initialize(int capacity, int length = 0);
// Initializes the array to a certain length.
inline bool AllowsSetElementsLength();
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698