| OLD | NEW |
| 1 #!/usr/bin/env node | 1 #!/usr/bin/env node |
| 2 // ********** Library dart:core ************** | 2 // ********** Library dart:core ************** |
| 3 // ********** Natives dart:core ************** | 3 // ********** Natives dart:core ************** |
| 4 /** | 4 /** |
| 5 * Generates a dynamic call stub for a function. | 5 * Generates a dynamic call stub for a function. |
| 6 * Our goal is to create a stub method like this on-the-fly: | 6 * Our goal is to create a stub method like this on-the-fly: |
| 7 * function($0, $1, capture) { this($0, $1, true, capture); } | 7 * function($0, $1, capture) { this($0, $1, true, capture); } |
| 8 * | 8 * |
| 9 * This stub then replaces the dynamic one on Function, with one that is | 9 * This stub then replaces the dynamic one on Function, with one that is |
| 10 * specialized for that particular function, taking into account its default | 10 * specialized for that particular function, taking into account its default |
| (...skipping 23361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23372 this.libDir = $assert_String(temp); | 23372 this.libDir = $assert_String(temp); |
| 23373 } | 23373 } |
| 23374 else { | 23374 else { |
| 23375 this.libDir = 'lib'; | 23375 this.libDir = 'lib'; |
| 23376 } | 23376 } |
| 23377 } | 23377 } |
| 23378 } | 23378 } |
| 23379 // ********** Code for LibraryReader ************** | 23379 // ********** Code for LibraryReader ************** |
| 23380 function LibraryReader() { | 23380 function LibraryReader() { |
| 23381 // Initializers done | 23381 // Initializers done |
| 23382 this._specialLibs = $map(['dart:core', joinPaths($globals.options.libDir, 'cor
elib.dart'), 'dart:coreimpl', joinPaths($globals.options.libDir, 'corelib_impl.d
art'), 'dart:html', joinPaths($globals.options.libDir, '../../client/html/releas
e/html.dart'), 'dart:dom', joinPaths($globals.options.libDir, '../../client/dom/
frog/frog_dom.dart'), 'dart:json', joinPaths($globals.options.libDir, 'json.dart
')]); | 23382 this._specialLibs = $map(['dart:core', joinPaths($globals.options.libDir, 'cor
elib.dart'), 'dart:coreimpl', joinPaths($globals.options.libDir, 'corelib_impl.d
art'), 'dart:html', joinPaths($globals.options.libDir, '../../client/html/releas
e/html.dart'), 'dart:htmlimpl', joinPaths($globals.options.libDir, '../../client
/html/release/htmlimpl.dart'), 'dart:dom', joinPaths($globals.options.libDir, '.
./../client/dom/frog/frog_dom.dart'), 'dart:json', joinPaths($globals.options.li
bDir, 'json.dart')]); |
| 23383 } | 23383 } |
| 23384 LibraryReader.prototype.readFile = function(fullname) { | 23384 LibraryReader.prototype.readFile = function(fullname) { |
| 23385 var filename = this._specialLibs.$index(fullname); | 23385 var filename = this._specialLibs.$index(fullname); |
| 23386 if ($notnull_bool(filename == null)) { | 23386 if ($notnull_bool(filename == null)) { |
| 23387 filename = fullname; | 23387 filename = fullname; |
| 23388 } | 23388 } |
| 23389 if ($notnull_bool($globals.world.files.fileExists($assert_String(filename))))
{ | 23389 if ($notnull_bool($globals.world.files.fileExists($assert_String(filename))))
{ |
| 23390 return new SourceFile(filename, $globals.world.files.readAll($assert_String(
filename))); | 23390 return new SourceFile(filename, $globals.world.files.readAll($assert_String(
filename))); |
| 23391 } | 23391 } |
| 23392 else { | 23392 else { |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24083 NATIVE, | 24083 NATIVE, |
| 24084 NEGATE, | 24084 NEGATE, |
| 24085 OPERATOR, | 24085 OPERATOR, |
| 24086 SET, | 24086 SET, |
| 24087 SOURCE, | 24087 SOURCE, |
| 24088 STATIC, | 24088 STATIC, |
| 24089 TYPEDEF ]*/; | 24089 TYPEDEF ]*/; |
| 24090 var $globals = {}; | 24090 var $globals = {}; |
| 24091 $static_init(); | 24091 $static_init(); |
| 24092 main(); | 24092 main(); |
| OLD | NEW |