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

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

Issue 2987323003: [VM DBC compiler and simulator] Support reified generic functions. (Closed)
Patch Set: address review comments and sync Created 3 years, 4 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
« no previous file with comments | « runtime/vm/constants_dbc.h ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 RUNTIME_VM_DART_ENTRY_H_ 5 #ifndef RUNTIME_VM_DART_ENTRY_H_
6 #define RUNTIME_VM_DART_ENTRY_H_ 6 #define RUNTIME_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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const Array& array_; 109 const Array& array_;
110 110
111 // A cache of VM heap allocated arguments descriptors. 111 // A cache of VM heap allocated arguments descriptors.
112 static RawArray* cached_args_descriptors_[kCachedDescriptorCount]; 112 static RawArray* cached_args_descriptors_[kCachedDescriptorCount];
113 113
114 friend class SnapshotReader; 114 friend class SnapshotReader;
115 friend class SnapshotWriter; 115 friend class SnapshotWriter;
116 friend class Serializer; 116 friend class Serializer;
117 friend class Deserializer; 117 friend class Deserializer;
118 friend class Simulator; 118 friend class Simulator;
119 friend class SimulatorHelpers;
119 DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor); 120 DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor);
120 }; 121 };
121 122
122 // DartEntry abstracts functionality needed to resolve dart functions 123 // DartEntry abstracts functionality needed to resolve dart functions
123 // and invoke them from C++. 124 // and invoke them from C++.
124 class DartEntry : public AllStatic { 125 class DartEntry : public AllStatic {
125 public: 126 public:
126 // On success, returns a RawInstance. On failure, a RawError. 127 // On success, returns a RawInstance. On failure, a RawError.
127 typedef RawObject* (*invokestub)(const Code& target_code, 128 typedef RawObject* (*invokestub)(const Code& target_code,
128 const Array& arguments_descriptor, 129 const Array& arguments_descriptor,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // 201 //
201 // Returns null on success, a RawError on failure. 202 // Returns null on success, a RawError on failure.
202 static RawObject* MapSetAt(const Instance& map, 203 static RawObject* MapSetAt(const Instance& map,
203 const Instance& key, 204 const Instance& key,
204 const Instance& value); 205 const Instance& value);
205 }; 206 };
206 207
207 } // namespace dart 208 } // namespace dart
208 209
209 #endif // RUNTIME_VM_DART_ENTRY_H_ 210 #endif // RUNTIME_VM_DART_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/constants_dbc.h ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698