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

Unified Diff: src/heap.cc

Issue 23584004: Remove OptimizedCodeEntry *sigh*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/heap.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « src/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698