| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index 997b7c2fda9b29455d03faac59c5a49a60d18d5c..00a86b3f11376c79b3a0d84d87723093990be257 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -4002,6 +4002,15 @@ HObjectAccess HObjectAccess::ForJSObjectOffset(int offset,
|
| }
|
|
|
|
|
| +HObjectAccess HObjectAccess::ForContextSlot(int index) {
|
| + ASSERT(index >= 0);
|
| + Portion portion = kInobject;
|
| + // Context::SlotOffset(index)
|
| + int offset = Context::kHeaderSize + index * kPointerSize;
|
| + return HObjectAccess(portion, offset, Representation::Tagged());
|
| +}
|
| +
|
| +
|
| HObjectAccess HObjectAccess::ForJSArrayOffset(int offset) {
|
| ASSERT(offset >= 0);
|
| Portion portion = kInobject;
|
|
|