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

Unified Diff: runtime/vm/dart_entry.h

Issue 1858283002: Initial SIMDBC interpreter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/cpuinfo_test.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.h
diff --git a/runtime/vm/dart_entry.h b/runtime/vm/dart_entry.h
index 0f9597f418955d9892c056f0c55911cca811e307..8c530ea6c474a375cc56b3a49bef1a25120b7433 100644
--- a/runtime/vm/dart_entry.h
+++ b/runtime/vm/dart_entry.h
@@ -86,6 +86,19 @@ class ArgumentsDescriptor : public ValueObject {
static RawArray* NewNonCached(intptr_t count, bool canonicalize = true);
+ // Used by Simulator to parse argument descriptors.
+ static intptr_t name_index(intptr_t index) {
+ return kFirstNamedEntryIndex +
+ (index * kNamedEntrySize) +
+ kNameOffset;
+ }
+
+ static intptr_t position_index(intptr_t index) {
+ return kFirstNamedEntryIndex +
+ (index * kNamedEntrySize) +
+ kPositionOffset;
+ }
+
const Array& array_;
// A cache of VM heap allocated arguments descriptors.
@@ -93,6 +106,7 @@ class ArgumentsDescriptor : public ValueObject {
friend class SnapshotReader;
friend class SnapshotWriter;
+ friend class Simulator;
DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor);
};
« no previous file with comments | « runtime/vm/cpuinfo_test.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698