| 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) { return this($0, $1, true, capture); } | 7 * function($0, $1, capture) { return 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 13081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13092 } | 13092 } |
| 13093 else { | 13093 else { |
| 13094 this.libDir = 'lib'; | 13094 this.libDir = 'lib'; |
| 13095 } | 13095 } |
| 13096 } | 13096 } |
| 13097 } | 13097 } |
| 13098 // ********** Code for LibraryReader ************** | 13098 // ********** Code for LibraryReader ************** |
| 13099 function LibraryReader() { | 13099 function LibraryReader() { |
| 13100 // Initializers done | 13100 // Initializers done |
| 13101 if ($eq($globals.options.config, 'dev')) { | 13101 if ($eq($globals.options.config, 'dev')) { |
| 13102 this._specialLibs = _map(['dart:core', joinPaths($globals.options.libDir, 'c
orelib.dart'), 'dart:coreimpl', joinPaths($globals.options.libDir, 'corelib_impl
.dart'), 'dart:html', joinPaths($globals.options.libDir, '../../client/html/rele
ase/html.dart'), 'dart:htmlimpl', joinPaths($globals.options.libDir, '../../clie
nt/html/release/htmlimpl.dart'), 'dart:dom', joinPaths($globals.options.libDir,
'../../client/dom/frog/dom_frog.dart'), 'dart:json', joinPaths($globals.options.
libDir, 'json.dart')]); | 13102 this._specialLibs = _map(['dart:core', joinPaths($globals.options.libDir, 'c
orelib.dart'), 'dart:coreimpl', joinPaths($globals.options.libDir, 'corelib_impl
.dart'), 'dart:html', joinPaths($globals.options.libDir, '../../client/html/rele
ase/html.dart'), 'dart:htmlimpl', joinPaths($globals.options.libDir, '../../clie
nt/html/release/htmlimpl.dart'), 'dart:dom', joinPaths($globals.options.libDir,
'../../client/dom/frog/dom_frog.dart'), 'dart:json', joinPaths($globals.options.
libDir, 'json_frog.dart')]); |
| 13103 } | 13103 } |
| 13104 else if ($eq($globals.options.config, 'sdk')) { | 13104 else if ($eq($globals.options.config, 'sdk')) { |
| 13105 this._specialLibs = _map(['dart:core', joinPaths($globals.options.libDir, 'c
ore/core_frog.dart'), 'dart:coreimpl', joinPaths($globals.options.libDir, 'corei
mpl/coreimpl_frog.dart'), 'dart:html', joinPaths($globals.options.libDir, 'html/
html.dart'), 'dart:htmlimpl', joinPaths($globals.options.libDir, 'htmlimpl/htmli
mpl.dart'), 'dart:dom', joinPaths($globals.options.libDir, 'dom/frog/dom_frog.da
rt'), 'dart:json', joinPaths($globals.options.libDir, 'json/json_frog.dart')]); | 13105 this._specialLibs = _map(['dart:core', joinPaths($globals.options.libDir, 'c
ore/core_frog.dart'), 'dart:coreimpl', joinPaths($globals.options.libDir, 'corei
mpl/coreimpl_frog.dart'), 'dart:html', joinPaths($globals.options.libDir, 'html/
html.dart'), 'dart:htmlimpl', joinPaths($globals.options.libDir, 'htmlimpl/htmli
mpl.dart'), 'dart:dom', joinPaths($globals.options.libDir, 'dom/frog/dom_frog.da
rt'), 'dart:json', joinPaths($globals.options.libDir, 'json/json_frog.dart')]); |
| 13106 } | 13106 } |
| 13107 else { | 13107 else { |
| 13108 $globals.world.error(('Invalid configuration ' + $globals.options.config)); | 13108 $globals.world.error(('Invalid configuration ' + $globals.options.config)); |
| 13109 } | 13109 } |
| 13110 } | 13110 } |
| 13111 LibraryReader.prototype.readFile = function(fullname) { | 13111 LibraryReader.prototype.readFile = function(fullname) { |
| 13112 var filename = this._specialLibs.$index(fullname); | 13112 var filename = this._specialLibs.$index(fullname); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13464 } | 13464 } |
| 13465 var const$0 = new EnvMap()/*const EnvMap()*/; | 13465 var const$0 = new EnvMap()/*const EnvMap()*/; |
| 13466 var const$127 = new IllegalAccessException()/*const IllegalAccessException()*/; | 13466 var const$127 = new IllegalAccessException()/*const IllegalAccessException()*/; |
| 13467 var const$128 = ImmutableList.ImmutableList$from$factory([])/*const []*/; | 13467 var const$128 = ImmutableList.ImmutableList$from$factory([])/*const []*/; |
| 13468 var const$2 = new EmptyQueueException()/*const EmptyQueueException()*/; | 13468 var const$2 = new EmptyQueueException()/*const EmptyQueueException()*/; |
| 13469 var const$3 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; | 13469 var const$3 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; |
| 13470 var const$8 = new NoMoreElementsException()/*const NoMoreElementsException()*/; | 13470 var const$8 = new NoMoreElementsException()/*const NoMoreElementsException()*/; |
| 13471 var $globals = {}; | 13471 var $globals = {}; |
| 13472 $static_init(); | 13472 $static_init(); |
| 13473 main(); | 13473 main(); |
| OLD | NEW |