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

Unified Diff: runtime/vm/dart_entry.h

Issue 1337083004: - Turn on writing of ic_data_array so that we have that information for script snapshots that would… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review-comments Created 5 years, 3 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 | « no previous file | runtime/vm/object.h » ('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 92e856298fb090aad10c77bae1913c012bb7d9aa..016f3ce50a7299e39f3af569fa9990411f41000e 100644
--- a/runtime/vm/dart_entry.h
+++ b/runtime/vm/dart_entry.h
@@ -60,6 +60,10 @@ class ArgumentsDescriptor : public ValueObject {
// Initialize the preallocated fixed length arguments descriptors cache.
static void InitOnce();
+ enum {
+ kCachedDescriptorCount = 32
+ };
+
private:
// Absolute indexes into the array.
enum {
@@ -75,10 +79,6 @@ class ArgumentsDescriptor : public ValueObject {
kNamedEntrySize,
};
- enum {
- kCachedDescriptorCount = 32
- };
-
static intptr_t LengthFor(intptr_t count) {
// Add 1 for the terminating null.
return kFirstNamedEntryIndex + (kNamedEntrySize * count) + 1;
@@ -91,8 +91,8 @@ class ArgumentsDescriptor : public ValueObject {
// A cache of VM heap allocated arguments descriptors.
static RawArray* cached_args_descriptors_[kCachedDescriptorCount];
- friend class FullSnapshotWriter;
- friend class VmIsolateSnapshotReader;
+ friend class SnapshotReader;
+ friend class SnapshotWriter;
DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor);
};
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698