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

Unified Diff: src/heap/spaces.cc

Issue 1350763004: StackFrameIterator looks up code object earlier to decide frame type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 9bba6dd89b9cfe6e3e3ba0933d6d89b87dfc78ca..4a1e119d34bed68506dff4b1eb11cc6cbd97de5f 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -3033,6 +3033,15 @@ bool LargeObjectSpace::Contains(HeapObject* object) {
}
+bool LargeObjectSpace::Contains(Address address) {
Hannes Payer (out of office) 2015/09/22 16:31:23 We have FindPage or FindObject (depending on what
titzer 2015/09/23 09:33:57 Ok, I can implement this method in terms of FindPa
+ for (LargePage* chunk = first_page_; chunk != NULL;
+ chunk = chunk->next_page()) {
+ if (chunk->Contains(address)) return true;
+ }
+ return false;
+}
+
+
#ifdef VERIFY_HEAP
// We do not assume that the large object iterator works, because it depends
// on the invariants we are checking during verification.
« no previous file with comments | « src/heap/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698