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

Unified Diff: src/objects.h

Issue 6665038: Dramatically speed up detailed heap snapshot generation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Don't use a hash map, instead mark references Created 9 years, 9 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 | « no previous file | src/objects-inl.h » ('j') | src/profile-generator.h » ('J')
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 3d88568882350628c8f4895c41c0265c9f502f8f..e50c1c4f32810483d3368d474b27c73dbf58bd71 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1121,6 +1121,9 @@ class HeapObject: public Object {
// object is overflowed (ie, partially restore the map pointer).
inline void ClearOverflow();
+ // Returns address of the field at offset in obj.
+ inline Address GetFieldAddress(int offset);
Vitaly Repeshko 2011/03/17 16:52:00 This is "obj->address() + offset". If a helper for
mnaganov (inactive) 2011/03/17 17:37:18 Removed.
+
// Returns the field at offset in obj, as a read/write Object* reference.
// Does no checking, and is safe to use during GC, while maps are invalid.
// Does not invoke write barrier, so should only be assigned to
@@ -1587,6 +1590,7 @@ class JSObject: public HeapObject {
inline int GetHeaderSize();
inline int GetInternalFieldCount();
+ inline Address GetInternalFieldOffset(int index);
Vitaly Repeshko 2011/03/17 16:52:00 Since it's called "...Offset" it should return an
mnaganov (inactive) 2011/03/17 17:37:18 Fixed.
inline Object* GetInternalField(int index);
inline void SetInternalField(int index, Object* value);
@@ -1700,6 +1704,7 @@ class JSObject: public HeapObject {
int unused_property_fields);
// Access fast-case object properties at index.
+ inline Address GetFastPropertyAddress(int index);
Vitaly Repeshko 2011/03/17 16:52:00 I think this also should return an offset.
mnaganov (inactive) 2011/03/17 17:37:18 Done.
inline Object* FastPropertyAt(int index);
inline Object* FastPropertyAtPut(int index, Object* value);
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/profile-generator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698