Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index c0a0ef7fe2ac792e16ee99dd71607a46a5fccba9..465d7307c15721962083721acc2812069fce95b4 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -208,7 +208,7 @@ inline bool GetSloppyArgumentsLength(Isolate* isolate, Handle<JSObject> object, |
Map* arguments_map = isolate->native_context()->sloppy_arguments_map(); |
if (object->map() != arguments_map) return false; |
DCHECK(object->HasFastElements()); |
- Object* len_obj = object->InObjectPropertyAt(Heap::kArgumentsLengthIndex); |
+ Object* len_obj = object->InObjectPropertyAt(JSArgumentsObject::kLengthIndex); |
if (!len_obj->IsSmi()) return false; |
*out = Max(0, Smi::cast(len_obj)->value()); |
return *out <= object->elements()->length(); |