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

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

Issue 2941643002: Check for a passed-in type argument vector in the prolog of generic functions. (Closed)
Patch Set: address review comments Created 3 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_entry.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698