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

Side by Side Diff: dart/lib/compiler/implementation/lib/js_helper.dart

Issue 11193032: Use JavaScript's Array.sort. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 #library('dart:_js_helper'); 5 #library('dart:_js_helper');
6 6
7 #import('dart:coreimpl'); 7 #import('dart:coreimpl');
8 8
9 #source('constant_map.dart'); 9 #source('constant_map.dart');
10 #source('native_helper.dart'); 10 #source('native_helper.dart');
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 JS('void', r'#.runtimeTypeCache[#] = #', JS_CURRENT_ISOLATE(), key, 1405 JS('void', r'#.runtimeTypeCache[#] = #', JS_CURRENT_ISOLATE(), key,
1406 runtimeType); 1406 runtimeType);
1407 } 1407 }
1408 return runtimeType; 1408 return runtimeType;
1409 } 1409 }
1410 1410
1411 String getRuntimeTypeString(var object) { 1411 String getRuntimeTypeString(var object) {
1412 var typeInfo = JS('Object', r'#.builtin$typeInfo', object); 1412 var typeInfo = JS('Object', r'#.builtin$typeInfo', object);
1413 return JS('String', r'#.runtimeType', typeInfo); 1413 return JS('String', r'#.runtimeType', typeInfo);
1414 } 1414 }
1415
1416 compareHelper(compare, a, b) => compare(a, b);
kasperl 2012/10/18 07:46:36 Add a comment that explains what this is used for
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698