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

Side by Side Diff: runtime/vm/dart_entry.h

Issue 2032153003: Use clustered serialization for full snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: round1 Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_DART_ENTRY_H_ 5 #ifndef VM_DART_ENTRY_H_
6 #define VM_DART_ENTRY_H_ 6 #define VM_DART_ENTRY_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 kPositionOffset; 99 kPositionOffset;
100 } 100 }
101 101
102 const Array& array_; 102 const Array& array_;
103 103
104 // A cache of VM heap allocated arguments descriptors. 104 // A cache of VM heap allocated arguments descriptors.
105 static RawArray* cached_args_descriptors_[kCachedDescriptorCount]; 105 static RawArray* cached_args_descriptors_[kCachedDescriptorCount];
106 106
107 friend class SnapshotReader; 107 friend class SnapshotReader;
108 friend class SnapshotWriter; 108 friend class SnapshotWriter;
109 friend class Serializer;
110 friend class Deserializer;
109 friend class Simulator; 111 friend class Simulator;
110 DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor); 112 DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor);
111 }; 113 };
112 114
113 115
114 // DartEntry abstracts functionality needed to resolve dart functions 116 // DartEntry abstracts functionality needed to resolve dart functions
115 // and invoke them from C++. 117 // and invoke them from C++.
116 class DartEntry : public AllStatic { 118 class DartEntry : public AllStatic {
117 public: 119 public:
118 // On success, returns a RawInstance. On failure, a RawError. 120 // On success, returns a RawInstance. On failure, a RawError.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // 188 //
187 // Returns null on success, a RawError on failure. 189 // Returns null on success, a RawError on failure.
188 static RawObject* MapSetAt(const Instance& map, 190 static RawObject* MapSetAt(const Instance& map,
189 const Instance& key, 191 const Instance& key,
190 const Instance& value); 192 const Instance& value);
191 }; 193 };
192 194
193 } // namespace dart 195 } // namespace dart
194 196
195 #endif // VM_DART_ENTRY_H_ 197 #endif // VM_DART_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698