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

Side by Side Diff: runtime/lib/internal_patch.dart

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/lib/function_patch.dart ('k') | runtime/lib/object.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:core' hide Symbol; 5 import 'dart:core' hide Symbol;
6 6
7 @patch 7 @patch
8 List makeListFixedLength(List growableList) 8 List makeListFixedLength(List growableList)
9 native "Internal_makeListFixedLength"; 9 native "Internal_makeListFixedLength";
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 i--, j--) { 57 i--, j--) {
58 dst[j] = src[i]; 58 dst[j] = src[i];
59 } 59 }
60 } else { 60 } else {
61 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { 61 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) {
62 dst[j] = src[i]; 62 dst[j] = src[i];
63 } 63 }
64 } 64 }
65 } 65 }
66 } 66 }
67
68 // Prepend the parent type arguments (maybe null) to the function type
69 // arguments (may be null). The result is null if both input vectors are null
70 // or is a newly allocated and canonicalized vector of length 'len'.
71 _prependTypeArguments(functionTypeArguments, parentTypeArguments, len)
72 native "Internal_prependTypeArguments";
OLDNEW
« no previous file with comments | « runtime/lib/function_patch.dart ('k') | runtime/lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698