Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index 3ec3a86d27d7434ee24a5c56763adec67c12db31..722bbf020ee5ab12b348be5d5493a96e041b09af 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -268,20 +268,16 @@ FieldAccess AccessBuilder::ForValue() { |
// static |
FieldAccess AccessBuilder::ForArgumentsLength() { |
- int offset = |
- JSObject::kHeaderSize + Heap::kArgumentsLengthIndex * kPointerSize; |
- FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(), |
- MachineType::AnyTagged()}; |
+ FieldAccess access = {kTaggedBase, JSArgumentsObject::kLengthOffset, |
+ Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; |
return access; |
} |
// static |
FieldAccess AccessBuilder::ForArgumentsCallee() { |
- int offset = |
- JSObject::kHeaderSize + Heap::kArgumentsCalleeIndex * kPointerSize; |
- FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(), |
- MachineType::AnyTagged()}; |
+ FieldAccess access = {kTaggedBase, JSSloppyArgumentsObject::kCalleeOffset, |
+ Handle<Name>(), Type::Any(), MachineType::AnyTagged()}; |
return access; |
} |