OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |