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

Unified Diff: src/mark-compact.cc

Issue 10103035: Share optimized code for closures. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: rebased on r11394 Created 8 years, 8 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
Index: src/mark-compact.cc
===================================================================
--- src/mark-compact.cc (revision 11394)
+++ src/mark-compact.cc (working copy)
@@ -1313,10 +1313,8 @@
static void VisitSharedFunctionInfoGeneric(Map* map, HeapObject* object) {
- SharedFunctionInfo* shared = reinterpret_cast<SharedFunctionInfo*>(object);
+ reinterpret_cast<SharedFunctionInfo*>(object)->BeforeVisitingPointers();
- if (shared->IsInobjectSlackTrackingInProgress()) shared->DetachInitialMap();
-
FixedBodyVisitor<StaticMarkingVisitor,
SharedFunctionInfo::BodyDescriptor,
void>::Visit(map, object);
@@ -1413,7 +1411,7 @@
Heap* heap = map->GetHeap();
SharedFunctionInfo* shared = reinterpret_cast<SharedFunctionInfo*>(object);
- if (shared->IsInobjectSlackTrackingInProgress()) shared->DetachInitialMap();
+ shared->BeforeVisitingPointers();
if (shared->ic_age() != heap->global_ic_age()) {
shared->ResetForNewContext(heap->global_ic_age());
@@ -1554,8 +1552,8 @@
}
VisitPointers(heap,
- SLOT_ADDR(object, SharedFunctionInfo::kScopeInfoOffset),
- SLOT_ADDR(object, SharedFunctionInfo::kSize));
+ SLOT_ADDR(object, SharedFunctionInfo::kOptimizedCodeMapOffset),
+ SLOT_ADDR(object, SharedFunctionInfo::kSize));
}
#undef SLOT_ADDR

Powered by Google App Engine
This is Rietveld 408576698