| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index 5be7861a6884c73db274e404dc965e10347f8f27..f0920b307071cad90c178908f5f0ffd1a94b14c6 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -63,6 +63,7 @@ namespace internal {
|
| V(Map, cell_map, CellMap) \
|
| V(Map, global_property_cell_map, GlobalPropertyCellMap) \
|
| V(Map, shared_function_info_map, SharedFunctionInfoMap) \
|
| + V(Map, optimized_code_entry_map, OptimizedCodeEntryMap) \
|
| V(Map, meta_map, MetaMap) \
|
| V(Map, heap_number_map, HeapNumberMap) \
|
| V(Map, native_context_map, NativeContextMap) \
|
| @@ -78,9 +79,9 @@ namespace internal {
|
| V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
|
| V(Smi, stack_limit, StackLimit) \
|
| V(Oddball, arguments_marker, ArgumentsMarker) \
|
| - /* The first 32 roots above this line should be boring from a GC point of */ \
|
| - /* view. This means they are never in new space and never on a page that */ \
|
| - /* is being compacted. */ \
|
| + /* The roots above this line should be boring from a GC point of view. */ \
|
| + /* This means they are never in new space and never on a page that is */ \
|
| + /* being compacted. */ \
|
| V(FixedArray, number_string_cache, NumberStringCache) \
|
| V(Object, instanceof_cache_function, InstanceofCacheFunction) \
|
| V(Object, instanceof_cache_map, InstanceofCacheMap) \
|
| @@ -1097,6 +1098,16 @@ class Heap {
|
| // Please note this does not perform a garbage collection.
|
| MUST_USE_RESULT MaybeObject* AllocateSharedFunctionInfo(Object* name);
|
|
|
| + // Allocates a new OptimizedCodeEntry object.
|
| + // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
| + // failed.
|
| + // Please note this does not perform a garbage collection.
|
| + MUST_USE_RESULT MaybeObject* AllocateOptimizedCodeEntry(
|
| + Context* native_context,
|
| + JSFunction* function,
|
| + Code* code,
|
| + FixedArray* literals);
|
| +
|
| // Allocates a new JSMessageObject object.
|
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
|
| // failed.
|
|
|