Index: runtime/vm/dart_entry.cc |
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc |
index f78dc3ca37c9da385e1836ef519b4ca6c7b1010c..12567e68279d4f57f540520150c740a75095ec80 100644 |
--- a/runtime/vm/dart_entry.cc |
+++ b/runtime/vm/dart_entry.cc |
@@ -299,6 +299,14 @@ RawString* ArgumentsDescriptor::NameAt(intptr_t index) const { |
} |
+intptr_t ArgumentsDescriptor::PositionAt(intptr_t index) const { |
+ const intptr_t offset = kFirstNamedEntryIndex + |
+ (index * kNamedEntrySize) + |
+ kPositionOffset; |
+ return Smi::Value(Smi::RawCast(array_.At(offset))); |
+} |
+ |
+ |
bool ArgumentsDescriptor::MatchesNameAt(intptr_t index, |
const String& other) const { |
return NameAt(index) == other.raw(); |