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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 kNameOffset, | 86 kNameOffset, |
87 kPositionOffset, | 87 kPositionOffset, |
88 kNamedEntrySize, | 88 kNamedEntrySize, |
89 }; | 89 }; |
90 | 90 |
91 static intptr_t LengthFor(intptr_t num_named_arguments) { | 91 static intptr_t LengthFor(intptr_t num_named_arguments) { |
92 // Add 1 for the terminating null. | 92 // Add 1 for the terminating null. |
93 return kFirstNamedEntryIndex + (kNamedEntrySize * num_named_arguments) + 1; | 93 return kFirstNamedEntryIndex + (kNamedEntrySize * num_named_arguments) + 1; |
94 } | 94 } |
95 | 95 |
96 static RawArray* NewNonCached(intptr_t num_arguments, | 96 static RawArray* NewNonCached(intptr_t type_args_len, |
| 97 intptr_t num_arguments, |
97 bool canonicalize = true); | 98 bool canonicalize = true); |
98 | 99 |
99 // Used by Simulator to parse argument descriptors. | 100 // Used by Simulator to parse argument descriptors. |
100 static intptr_t name_index(intptr_t index) { | 101 static intptr_t name_index(intptr_t index) { |
101 return kFirstNamedEntryIndex + (index * kNamedEntrySize) + kNameOffset; | 102 return kFirstNamedEntryIndex + (index * kNamedEntrySize) + kNameOffset; |
102 } | 103 } |
103 | 104 |
104 static intptr_t position_index(intptr_t index) { | 105 static intptr_t position_index(intptr_t index) { |
105 return kFirstNamedEntryIndex + (index * kNamedEntrySize) + kPositionOffset; | 106 return kFirstNamedEntryIndex + (index * kNamedEntrySize) + kPositionOffset; |
106 } | 107 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // | 199 // |
199 // Returns null on success, a RawError on failure. | 200 // Returns null on success, a RawError on failure. |
200 static RawObject* MapSetAt(const Instance& map, | 201 static RawObject* MapSetAt(const Instance& map, |
201 const Instance& key, | 202 const Instance& key, |
202 const Instance& value); | 203 const Instance& value); |
203 }; | 204 }; |
204 | 205 |
205 } // namespace dart | 206 } // namespace dart |
206 | 207 |
207 #endif // RUNTIME_VM_DART_ENTRY_H_ | 208 #endif // RUNTIME_VM_DART_ENTRY_H_ |
OLD | NEW |