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

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

Issue 22425006: Fix equality of implicit closures in the Dart VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 patch class Function { 5 patch class Function {
6 static _apply(List arguments, List names) 6 static _apply(List arguments, List names)
7 native "Function_apply"; 7 native "Function_apply";
8 8
9 /* patch */ static apply(Function function, 9 /* patch */ static apply(Function function,
10 List positionalArguments, 10 List positionalArguments,
(...skipping 10 matching lines...) Expand all
21 int nameIndex = 0; 21 int nameIndex = 0;
22 if (numNamedArguments > 0) { 22 if (numNamedArguments > 0) {
23 namedArguments.forEach((name, value) { 23 namedArguments.forEach((name, value) {
24 arguments[argumentIndex++] = value; 24 arguments[argumentIndex++] = value;
25 names[nameIndex++] = _collection_dev.Symbol.getName(name); 25 names[nameIndex++] = _collection_dev.Symbol.getName(name);
26 }); 26 });
27 } 27 }
28 return _apply(arguments, names); 28 return _apply(arguments, names);
29 } 29 }
30 } 30 }
31
32 bool _Closure_comparison(var a, var b) native "Closure_comparison";
33
34 int _Closure_hashCode(var a) native "Closure_hashCode";
OLDNEW
« no previous file with comments | « runtime/lib/function.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698