Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index d4425ea6a1bc8961e5344acdc8991094f8e66743..bd0a6f9d17012ebb78865302974af87c371e7770 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2824,12 +2824,6 @@ bool Heap::CreateInitialMaps() { |
} |
set_shared_function_info_map(Map::cast(obj)); |
- { MaybeObject* maybe_obj = AllocateMap(OPTIMIZED_CODE_ENTRY_TYPE, |
- OptimizedCodeEntry::kAlignedSize); |
- if (!maybe_obj->ToObject(&obj)) return false; |
- } |
- set_optimized_code_entry_map(Map::cast(obj)); |
- |
{ MaybeObject* maybe_obj = AllocateMap(JS_MESSAGE_OBJECT_TYPE, |
JSMessageObject::kSize); |
if (!maybe_obj->ToObject(&obj)) return false; |
@@ -3657,30 +3651,6 @@ MaybeObject* Heap::AllocateSharedFunctionInfo(Object* name) { |
} |
-MaybeObject* Heap::AllocateOptimizedCodeEntry( |
- Context* native_context, |
- JSFunction* function, |
- Code* code, |
- FixedArray* literals) { |
- OptimizedCodeEntry* entry; |
- MaybeObject* maybe = Allocate(optimized_code_entry_map(), OLD_POINTER_SPACE); |
- if (!maybe->To<OptimizedCodeEntry>(&entry)) return maybe; |
- |
- // Set pointer fields. |
- entry->set_native_context(native_context); |
- entry->set_function(function); |
- entry->set_code(code); |
- entry->set_literals(literals); |
- |
- // NULL-out link fields. |
- entry->set_next_by_shared_info(NULL, SKIP_WRITE_BARRIER); |
- entry->set_next_by_native_context(NULL, SKIP_WRITE_BARRIER); |
- entry->set_cacheable(false); |
- |
- return entry; |
-} |
- |
- |
MaybeObject* Heap::AllocateJSMessageObject(String* type, |
JSArray* arguments, |
int start_position, |