| Index: src/heap.h
|
| ===================================================================
|
| --- src/heap.h (revision 8778)
|
| +++ src/heap.h (working copy)
|
| @@ -448,12 +448,6 @@
|
| // Uncommit unused semi space.
|
| bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); }
|
|
|
| -#ifdef ENABLE_HEAP_PROTECTION
|
| - // Protect/unprotect the heap by marking all spaces read-only/writable.
|
| - void Protect();
|
| - void Unprotect();
|
| -#endif
|
| -
|
| // Allocates and initializes a new JavaScript object based on a
|
| // constructor.
|
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
| @@ -486,6 +480,11 @@
|
| MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler,
|
| Object* prototype);
|
|
|
| + // Reinitialize a JSProxy into an (empty) JSObject. The receiver
|
| + // must have the same size as an empty object. The object is reinitialized
|
| + // and behaves as an object that has been freshly allocated.
|
| + MUST_USE_RESULT MaybeObject* ReinitializeJSProxyAsJSObject(JSProxy* object);
|
| +
|
| // Reinitialize an JSGlobalProxy based on a constructor. The object
|
| // must have the same size as objects allocated using the
|
| // constructor. The object is reinitialized and behaves as an
|
| @@ -657,6 +656,16 @@
|
| // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
|
| MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map);
|
|
|
| + // Make a copy of src and return it. Returns
|
| + // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
|
| + MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray(
|
| + FixedDoubleArray* src);
|
| +
|
| + // Make a copy of src, set the map, and return the copy. Returns
|
| + // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
|
| + MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap(
|
| + FixedDoubleArray* src, Map* map);
|
| +
|
| // Allocates a fixed array initialized with the hole values.
|
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
| // failed.
|
| @@ -1101,10 +1110,8 @@
|
| void ZapFromSpace();
|
| #endif
|
|
|
| -#if defined(ENABLE_LOGGING_AND_PROFILING)
|
| // Print short heap statistics.
|
| void PrintShortHeapStatistics();
|
| -#endif
|
|
|
| // Makes a new symbol object
|
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
| @@ -1605,11 +1612,9 @@
|
| // around a GC).
|
| inline void CompletelyClearInstanceofCache();
|
|
|
| -#if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING)
|
| // Record statistics before and after garbage collection.
|
| void ReportStatisticsBeforeGC();
|
| void ReportStatisticsAfterGC();
|
| -#endif
|
|
|
| // Slow part of scavenge object.
|
| static void ScavengeObjectSlow(HeapObject** p, HeapObject* object);
|
|
|