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

Unified Diff: src/mark-compact.h

Issue 24791002: Thumb2 Backend: Thumb2 changes for Deoptimization and Code Aging 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/liveedit.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index ee845a08370e506fe971ac0aca9bbb7a59b4b32b..729c288a3478e00257f511e33b4ab8e0ca9e52eb 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -663,6 +663,13 @@ class MarkCompactCollector {
IsEvacuationCandidate();
}
+ INLINE(static bool IsCodeEntry(Address addr, Object* value)) {
+ HeapObject* obj = HeapObject::FromAddress(addr);
+ return obj->IsJSFunction() &&
+ (Code::GetCodeFromTargetAddress((Address)value) ==
+ JSFunction::cast(obj)->code());
+ }
+
INLINE(void EvictEvacuationCandidate(Page* page)) {
if (FLAG_trace_fragmentation) {
PrintF("Page %p is too popular. Disabling evacuation.\n",
« no previous file with comments | « src/liveedit.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698