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

Unified Diff: runtime/vm/dart_entry.cc

Issue 2411823003: VM support for running Kernel binaries. (Closed)
Patch Set: Address 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
« no previous file with comments | « runtime/vm/dart_entry.h ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/vm/dart_entry.h ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698