In HObjectAccess::ForField pass property name down into HObjectAccess for in-object fields.
This makes hydrogen.cfg more readable (property name becomes visible in addition to offset). R=mvstanton@chromium.org BUG= Review URL: https://codereview.chromium.org/132923004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18781 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
15ecc108cb
commit
b7f26cf06d
@ -4345,7 +4345,7 @@ HObjectAccess HObjectAccess::ForField(Handle<Map> map,
|
||||
// Negative property indices are in-object properties, indexed
|
||||
// from the end of the fixed part of the object.
|
||||
int offset = (index * kPointerSize) + map->instance_size();
|
||||
return HObjectAccess(kInobject, offset, representation);
|
||||
return HObjectAccess(kInobject, offset, representation, name);
|
||||
} else {
|
||||
// Non-negative property indices are in the properties array.
|
||||
int offset = (index * kPointerSize) + FixedArray::kHeaderSize;
|
||||
|
Loading…
Reference in New Issue
Block a user