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

Unified Diff: src/frames.cc

Issue 5987005: Refactor MemoryAllocator to allow big normal pages (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: remove rogue printf Created 10 years 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/deoptimizer.cc ('k') | src/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 3af72887e9fd434e1a1308a745451ef913199e75..d634881addb89d4e6607d9cb8ed50a26632576f7 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1116,8 +1116,8 @@ Code* PcToCodeCache::GcSafeCastToCode(HeapObject* object, Address pc) {
Code* PcToCodeCache::GcSafeFindCodeForPc(Address pc) {
// Check if the pc points into a large object chunk.
- LargeObjectChunk* chunk = Heap::lo_space()->FindChunkContainingPc(pc);
- if (chunk != NULL) return GcSafeCastToCode(chunk->GetObject(), pc);
+ LargePage* large_page = Heap::lo_space()->FindPageContainingPc(pc);
+ if (large_page != NULL) return GcSafeCastToCode(large_page->GetObject(), pc);
// Iterate through the 8K page until we reach the end or find an
// object starting after the pc.
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698