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