Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Unified Diff: runtime/vm/dart_entry.cc

Issue 2411823003: VM support for running Kernel binaries. (Closed)
Patch Set: Address initial review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698