Commit b7f26cf0 authored by vegorov@chromium.org's avatar vegorov@chromium.org

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
parent 15ecc108
...@@ -4345,7 +4345,7 @@ HObjectAccess HObjectAccess::ForField(Handle<Map> map, ...@@ -4345,7 +4345,7 @@ HObjectAccess HObjectAccess::ForField(Handle<Map> map,
// Negative property indices are in-object properties, indexed // Negative property indices are in-object properties, indexed
// from the end of the fixed part of the object. // from the end of the fixed part of the object.
int offset = (index * kPointerSize) + map->instance_size(); int offset = (index * kPointerSize) + map->instance_size();
return HObjectAccess(kInobject, offset, representation); return HObjectAccess(kInobject, offset, representation, name);
} else { } else {
// Non-negative property indices are in the properties array. // Non-negative property indices are in the properties array.
int offset = (index * kPointerSize) + FixedArray::kHeaderSize; int offset = (index * kPointerSize) + FixedArray::kHeaderSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment