Index: runtime/vm/dart_entry.cc |
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc |
index 1b9e3614a77c1466db926ef37ea0e4f3d5404f0e..89ebb10cf0884760342d2c0decbdeda7b08a1ac5 100644 |
--- a/runtime/vm/dart_entry.cc |
+++ b/runtime/vm/dart_entry.cc |
@@ -176,17 +176,17 @@ bool ArgumentsDescriptor::MatchesNameAt(intptr_t index, |
intptr_t ArgumentsDescriptor::count_offset() { |
- return Array::data_offset() + (kCountIndex * kWordSize); |
+ return Array::element_offset(kCountIndex); |
} |
intptr_t ArgumentsDescriptor::positional_count_offset() { |
- return Array::data_offset() + (kPositionalCountIndex * kWordSize); |
+ return Array::element_offset(kPositionalCountIndex); |
} |
intptr_t ArgumentsDescriptor::first_named_entry_offset() { |
- return Array::data_offset() + (kFirstNamedEntryIndex * kWordSize); |
+ return Array::element_offset(kFirstNamedEntryIndex); |
} |