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

Unified Diff: src/objects.h

Issue 6469079: [Isolates] Get the current heap from page header instead of Map field. (Closed)
Patch Set: Created 9 years, 10 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.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 872f9dfc9aa4be5c3a19c9c41d17ab2a16da8c23..3bc2f4c0d33ea87895dd23f0e58fbd80c26e1237 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -3557,9 +3557,8 @@ class Map: public HeapObject {
inline int visitor_id();
inline void set_visitor_id(int visitor_id);
- // Meta map has a heap pointer for fast access to Heap and Isolate.
+ // Returns the heap this map belongs to.
inline Heap* heap();
- inline void set_heap(Heap* heap);
typedef void (*TraverseCallback)(Map* map, void* data);
@@ -3568,8 +3567,7 @@ class Map: public HeapObject {
static const int kMaxPreAllocatedPropertyFields = 255;
// Layout description.
- static const int kHeapOffset = HeapObject::kHeaderSize;
- static const int kInstanceSizesOffset = kHeapOffset + kPointerSize;
+ static const int kInstanceSizesOffset = HeapObject::kHeaderSize;
static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize;
static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize;
static const int kConstructorOffset = kPrototypeOffset + kPointerSize;
« no previous file with comments | « src/heap.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698