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

Side by Side Diff: frog/minfrog

Issue 9616002: Update typeNameOf to treat Window as DOMWindow on Chrome. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update minfrog and make string raw. Created 8 years, 9 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
« no previous file with comments | « frog/leg/native_emitter.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 function $defProp(obj, prop, value) { 4 function $defProp(obj, prop, value) {
5 Object.defineProperty(obj, prop, 5 Object.defineProperty(obj, prop,
6 {value: value, enumerable: false, writable: true, configurable: true}); 6 {value: value, enumerable: false, writable: true, configurable: true});
7 } 7 }
8 Function.prototype.bind = Function.prototype.bind || 8 Function.prototype.bind = Function.prototype.bind ||
9 function(thisObj) { 9 function(thisObj) {
10 var func = this; 10 var func = this;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 this.call$2 = this._genStub(2); 478 this.call$2 = this._genStub(2);
479 this.to$call$2 = function() { return this.call$2; }; 479 this.to$call$2 = function() { return this.call$2; };
480 return this.call$2; 480 return this.call$2;
481 }; 481 };
482 Function.prototype.call$2 = function($0, $1) { 482 Function.prototype.call$2 = function($0, $1) {
483 return this.to$call$2()($0, $1); 483 return this.to$call$2()($0, $1);
484 }; 484 };
485 function to$call$2(f) { return f && f.to$call$2(); } 485 function to$call$2(f) { return f && f.to$call$2(); }
486 // ********** Code for Math ************** 486 // ********** Code for Math **************
487 Math.parseInt = function(str) { 487 Math.parseInt = function(str) {
488 var ret = parseInt(str); 488 var match = /^\s*[+-]?(?:(0[xX][abcdefABCDEF0-9]+)|\d+)\s*$/.exec(str);
489 if (!match) $throw(new BadNumberFormatException(str));
490 var isHex = !!match[1];
491 var ret = parseInt(str, isHex ? 16 : 10);
489 if (isNaN(ret)) $throw(new BadNumberFormatException(str)); 492 if (isNaN(ret)) $throw(new BadNumberFormatException(str));
490 return ret; 493 return ret;
491 } 494 }
492 Math.parseDouble = function(str) { 495 Math.parseDouble = function(str) {
493 var ret = parseFloat(str); 496 var ret = parseFloat(str);
494 if (isNaN(ret) && str != 'NaN') $throw(new BadNumberFormatException(str)); 497 if (isNaN(ret) && str != 'NaN') $throw(new BadNumberFormatException(str));
495 return ret; 498 return ret;
496 } 499 }
497 Math.min = function(a, b) { 500 Math.min = function(a, b) {
498 if (a == b) return a; 501 if (a == b) return a;
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 // the constructor name even for more specialized objects so 1889 // the constructor name even for more specialized objects so
1887 // we have to fall through to the toString() based implementation 1890 // we have to fall through to the toString() based implementation
1888 // below in that case. 1891 // below in that case.
1889 if (typeof(name) == 'string' && name && name != 'Object') return name; 1892 if (typeof(name) == 'string' && name && name != 'Object') return name;
1890 } 1893 }
1891 var string = Object.prototype.toString.call(obj); 1894 var string = Object.prototype.toString.call(obj);
1892 return string.substring(8, string.length - 1); 1895 return string.substring(8, string.length - 1);
1893 } 1896 }
1894 1897
1895 function chrome$typeNameOf() { 1898 function chrome$typeNameOf() {
1896 return this.constructor.name; 1899 var name = this.constructor.name;
1900 if (name == 'Window') return 'DOMWindow';
1901 return name;
1897 } 1902 }
1898 1903
1899 function firefox$typeNameOf() { 1904 function firefox$typeNameOf() {
1900 var name = constructorNameWithFallback(this); 1905 var name = constructorNameWithFallback(this);
1901 if (name == 'Window') return 'DOMWindow'; 1906 if (name == 'Window') return 'DOMWindow';
1902 if (name == 'Document') return 'HTMLDocument'; 1907 if (name == 'Document') return 'HTMLDocument';
1903 if (name == 'XMLDocument') return 'Document'; 1908 if (name == 'XMLDocument') return 'Document';
1904 return name; 1909 return name;
1905 } 1910 }
1906 1911
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
3100 } 3105 }
3101 CoreJs.prototype.ensureDynamicSetMetadata = function() { 3106 CoreJs.prototype.ensureDynamicSetMetadata = function() {
3102 if (this._generatedDynamicSetMetadata) return; 3107 if (this._generatedDynamicSetMetadata) return;
3103 this._generatedDynamicSetMetadata = true; 3108 this._generatedDynamicSetMetadata = true;
3104 this.writer.writeln("function $dynamicSetMetadata(inputTable) {\n // TODO: De al with light isolates.\n var table = [];\n for (var i = 0; i < inputTable.len gth; i++) {\n var tag = inputTable[i][0];\n var tags = inputTable[i][1];\n var map = {};\n var tagNames = tags.split('|');\n for (var j = 0; j < tagNames.length; j++) {\n map[tagNames[j]] = true;\n }\n table.push({ tag: tag, tags: tags, map: map});\n }\n $dynamicMetadata = table;\n}\n"); 3109 this.writer.writeln("function $dynamicSetMetadata(inputTable) {\n // TODO: De al with light isolates.\n var table = [];\n for (var i = 0; i < inputTable.len gth; i++) {\n var tag = inputTable[i][0];\n var tags = inputTable[i][1];\n var map = {};\n var tagNames = tags.split('|');\n for (var j = 0; j < tagNames.length; j++) {\n map[tagNames[j]] = true;\n }\n table.push({ tag: tag, tags: tags, map: map});\n }\n $dynamicMetadata = table;\n}\n");
3105 } 3110 }
3106 CoreJs.prototype.ensureTypeNameOf = function() { 3111 CoreJs.prototype.ensureTypeNameOf = function() {
3107 if (this._generatedTypeNameOf) return; 3112 if (this._generatedTypeNameOf) return;
3108 this._generatedTypeNameOf = true; 3113 this._generatedTypeNameOf = true;
3109 this.ensureDefProp(); 3114 this.ensureDefProp();
3110 this.writer.writeln("$defProp(Object.prototype, '$typeNameOf', (function() {\n function constructorNameWithFallback(obj) {\n var constructor = obj.constru ctor;\n if (typeof(constructor) == 'function') {\n // The constructor is n't null or undefined at this point. Try\n // to grab hold of its name.\n var name = constructor.name;\n // If the name is a non-empty string, we use that as the type\n // name of this object. On Firefox, we often get 'O bject' as\n // the constructor name even for more specialized objects so\n // we have to fall through to the toString() based implementation\n // below in that case.\n if (typeof(name) == 'string' && name && name != 'Obj ect') return name;\n }\n var string = Object.prototype.toString.call(obj); \n return string.substring(8, string.length - 1);\n }\n\n function chrome$t ypeNameOf() {\n return this.constructor.name;\n }\n\n function firefox$type NameOf() {\n var name = constructorNameWithFallback(this);\n if (name == ' Window') return 'DOMWindow';\n if (name == 'Document') return 'HTMLDocument'; \n if (name == 'XMLDocument') return 'Document';\n return name;\n }\n\n function ie$typeNameOf() {\n var name = constructorNameWithFallback(this);\n if (name == 'Window') return 'DOMWindow';\n // IE calls both HTML and XML documents 'Document', so we check for the\n // xmlVersion property, which is the empty string on HTML documents.\n if (name == 'Document' && this.xmlVersi on) return 'Document';\n if (name == 'Document') return 'HTMLDocument';\n return name;\n }\n\n // If we're not in the browser, we're almost certainly ru nning on v8.\n if (typeof(navigator) != 'object') return chrome$typeNameOf;\n\n var userAgent = navigator.userAgent;\n if (/Chrome/.test(userAgent)) return c hrome$typeNameOf;\n if (/Firefox/.test(userAgent)) return firefox$typeNameOf;\n if (/MSIE/.test(userAgent)) return ie$typeNameOf;\n return function() { retur n constructorNameWithFallback(this); };\n})());"); 3115 this.writer.writeln("$defProp(Object.prototype, '$typeNameOf', (function() {\n function constructorNameWithFallback(obj) {\n var constructor = obj.constru ctor;\n if (typeof(constructor) == 'function') {\n // The constructor is n't null or undefined at this point. Try\n // to grab hold of its name.\n var name = constructor.name;\n // If the name is a non-empty string, we use that as the type\n // name of this object. On Firefox, we often get 'O bject' as\n // the constructor name even for more specialized objects so\n // we have to fall through to the toString() based implementation\n // below in that case.\n if (typeof(name) == 'string' && name && name != 'Obj ect') return name;\n }\n var string = Object.prototype.toString.call(obj); \n return string.substring(8, string.length - 1);\n }\n\n function chrome$t ypeNameOf() {\n var name = this.constructor.name;\n if (name == 'Window') return 'DOMWindow';\n return name;\n }\n\n function firefox$typeNameOf() {\ n var name = constructorNameWithFallback(this);\n if (name == 'Window') re turn 'DOMWindow';\n if (name == 'Document') return 'HTMLDocument';\n if (n ame == 'XMLDocument') return 'Document';\n return name;\n }\n\n function ie $typeNameOf() {\n var name = constructorNameWithFallback(this);\n if (name == 'Window') return 'DOMWindow';\n // IE calls both HTML and XML documents ' Document', so we check for the\n // xmlVersion property, which is the empty s tring on HTML documents.\n if (name == 'Document' && this.xmlVersion) return 'Document';\n if (name == 'Document') return 'HTMLDocument';\n return name ;\n }\n\n // If we're not in the browser, we're almost certainly running on v8 .\n if (typeof(navigator) != 'object') return chrome$typeNameOf;\n\n var userA gent = navigator.userAgent;\n if (/Chrome/.test(userAgent)) return chrome$typeN ameOf;\n if (/Firefox/.test(userAgent)) return firefox$typeNameOf;\n if (/MSIE /.test(userAgent)) return ie$typeNameOf;\n return function() { return construct orNameWithFallback(this); };\n})());");
3111 } 3116 }
3112 CoreJs.prototype.ensureInheritsHelper = function() { 3117 CoreJs.prototype.ensureInheritsHelper = function() {
3113 if (this._generatedInherits) return; 3118 if (this._generatedInherits) return;
3114 this._generatedInherits = true; 3119 this._generatedInherits = true;
3115 this.writer.writeln("/** Implements extends for Dart classes on JavaScript pro totypes. */\nfunction $inherits(child, parent) {\n if (child.prototype.__proto_ _) {\n child.prototype.__proto__ = parent.prototype;\n } else {\n functio n tmp() {};\n tmp.prototype = parent.prototype;\n child.prototype = new tm p();\n child.prototype.constructor = child;\n }\n}"); 3120 this.writer.writeln("/** Implements extends for Dart classes on JavaScript pro totypes. */\nfunction $inherits(child, parent) {\n if (child.prototype.__proto_ _) {\n child.prototype.__proto__ = parent.prototype;\n } else {\n functio n tmp() {};\n tmp.prototype = parent.prototype;\n child.prototype = new tm p();\n child.prototype.constructor = child;\n }\n}");
3116 } 3121 }
3117 CoreJs.prototype.ensureDefProp = function() { 3122 CoreJs.prototype.ensureDefProp = function() {
3118 if (this._generatedDefProp) return; 3123 if (this._generatedDefProp) return;
3119 this._generatedDefProp = true; 3124 this._generatedDefProp = true;
3120 this.writer.writeln("function $defProp(obj, prop, value) {\n Object.definePro perty(obj, prop,\n {value: value, enumerable: false, writable: true, config urable: true});\n}"); 3125 this.writer.writeln("function $defProp(obj, prop, value) {\n Object.definePro perty(obj, prop,\n {value: value, enumerable: false, writable: true, config urable: true});\n}");
(...skipping 11234 matching lines...) Expand 10 before | Expand all | Expand 10 after
14355 var sw = new StopwatchImplementation(); 14360 var sw = new StopwatchImplementation();
14356 sw.start(); 14361 sw.start();
14357 var result = f(); 14362 var result = f();
14358 sw.stop(); 14363 sw.stop();
14359 this.info(("" + name + " in " + sw.elapsedInMs() + "msec")); 14364 this.info(("" + name + " in " + sw.elapsedInMs() + "msec"));
14360 return result; 14365 return result;
14361 } 14366 }
14362 // ********** Code for FrogOptions ************** 14367 // ********** Code for FrogOptions **************
14363 function FrogOptions(homedir, args, files) { 14368 function FrogOptions(homedir, args, files) {
14364 this.legOnly = false; 14369 this.legOnly = false;
14370 this.ignoreUnrecognizedFlags = false;
14365 this.checkOnly = false; 14371 this.checkOnly = false;
14366 this.disableBoundsChecks = false; 14372 this.disableBoundsChecks = false;
14367 this.maxInferenceIterations = (4); 14373 this.maxInferenceIterations = (4);
14368 this.throwOnWarnings = false; 14374 this.throwOnWarnings = false;
14369 this.inferTypes = false; 14375 this.inferTypes = false;
14370 this.warningsAsErrors = false; 14376 this.warningsAsErrors = false;
14371 this.enableAsserts = false; 14377 this.enableAsserts = false;
14372 this.forceDynamic = false; 14378 this.forceDynamic = false;
14373 this.dietParse = false; 14379 this.dietParse = false;
14374 this.compileOnly = false; 14380 this.compileOnly = false;
14375 this.showWarnings = true; 14381 this.showWarnings = true;
14376 this.throwOnFatal = false; 14382 this.throwOnFatal = false;
14377 this.config = "dev"; 14383 this.config = "dev";
14378 this.verifyImplements = false; 14384 this.verifyImplements = false;
14379 this.enableTypeChecks = false; 14385 this.enableTypeChecks = false;
14380 this.showInfo = false; 14386 this.showInfo = false;
14381 this.useColors = true; 14387 this.useColors = true;
14382 this.compileAll = false; 14388 this.compileAll = false;
14383 this.throwOnErrors = false; 14389 this.throwOnErrors = false;
14384 if ($eq$(this.config, "dev")) { 14390 if ($eq$(this.config, "dev")) {
14385 this.libDir = joinPaths(homedir, "/lib"); 14391 this.libDir = joinPaths(homedir, "/lib");
14386 } 14392 }
14387 else if ($eq$(this.config, "sdk")) { 14393 else if ($eq$(this.config, "sdk")) {
14388 this.libDir = joinPaths(homedir, "/../lib"); 14394 this.libDir = joinPaths(homedir, "/../lib");
14389 } 14395 }
14390 else { 14396 else {
14391 $globals.world.error(("Invalid configuration " + this.config)); 14397 $globals.world.error(("Invalid configuration " + this.config));
14392 $throw("Invalid configuration"); 14398 $throw("Invalid configuration");
14393 } 14399 }
14394 var ignoreUnrecognizedFlags = false;
14395 var passedLibDir = false; 14400 var passedLibDir = false;
14396 this.childArgs = []; 14401 this.childArgs = [];
14397 loop: 14402 loop:
14398 for (var i = (2); 14403 for (var i = (2);
14399 i < args.get$length(); i++) { 14404 i < args.get$length(); i++) {
14400 var arg = args.$index(i); 14405 var arg = args.$index(i);
14401 switch (arg) { 14406 if (this.tryParseSimpleOption(arg)) continue;
14402 case "--leg": 14407 if (arg.endsWith(".dart")) {
14403 case "--enable_leg": 14408 this.dartScript = arg;
14404 case "--leg_only": 14409 this.childArgs = args.getRange(i + (1), args.get$length() - i - (1));
14405 14410 break loop;
14406 this.legOnly = true; 14411 }
14407 break; 14412 else if (arg.startsWith("--out=")) {
14408 14413 this.outfile = arg.substring$1("--out=".length);
14409 case "--enable_asserts": 14414 }
14410 14415 else if (arg.startsWith("--libdir=")) {
14411 this.enableAsserts = true; 14416 this.libDir = arg.substring$1("--libdir=".length);
14412 break; 14417 passedLibDir = true;
14413 14418 }
14414 case "--enable_type_checks": 14419 else if (!this.ignoreUnrecognizedFlags) {
14415 14420 print$(("unrecognized flag: \"" + arg + "\""));
14416 this.enableTypeChecks = true;
14417 this.enableAsserts = true;
14418 break;
14419
14420 case "--verify_implements":
14421
14422 this.verifyImplements = true;
14423 break;
14424
14425 case "--compile_all":
14426
14427 this.compileAll = true;
14428 break;
14429
14430 case "--check-only":
14431
14432 this.checkOnly = true;
14433 break;
14434
14435 case "--diet-parse":
14436
14437 this.dietParse = true;
14438 break;
14439
14440 case "--ignore-unrecognized-flags":
14441
14442 ignoreUnrecognizedFlags = true;
14443 break;
14444
14445 case "--verbose":
14446
14447 this.showInfo = true;
14448 break;
14449
14450 case "--suppress_warnings":
14451
14452 this.showWarnings = false;
14453 break;
14454
14455 case "--warnings_as_errors":
14456
14457 this.warningsAsErrors = true;
14458 break;
14459
14460 case "--throw_on_errors":
14461
14462 this.throwOnErrors = true;
14463 break;
14464
14465 case "--throw_on_warnings":
14466
14467 this.throwOnWarnings = true;
14468 break;
14469
14470 case "--compile-only":
14471
14472 this.compileOnly = true;
14473 break;
14474
14475 case "--Xforce_dynamic":
14476
14477 this.forceDynamic = true;
14478 break;
14479
14480 case "--no_colors":
14481
14482 this.useColors = false;
14483 break;
14484
14485 case "--Xinfer_types":
14486
14487 this.inferTypes = true;
14488 break;
14489
14490 case "--checked":
14491
14492 this.enableTypeChecks = true;
14493 this.enableAsserts = true;
14494 break;
14495
14496 case "--unchecked":
14497
14498 this.disableBoundsChecks = true;
14499 break;
14500
14501 default:
14502
14503 if (arg.endsWith(".dart")) {
14504 this.dartScript = arg;
14505 this.childArgs = args.getRange(i + (1), args.get$length() - i - (1));
14506 break loop;
14507 }
14508 else if (arg.startsWith("--out=")) {
14509 this.outfile = arg.substring$1("--out=".length);
14510 }
14511 else if (arg.startsWith("--libdir=")) {
14512 this.libDir = arg.substring$1("--libdir=".length);
14513 passedLibDir = true;
14514 }
14515 else {
14516 if (!ignoreUnrecognizedFlags) {
14517 print$(("unrecognized flag: \"" + arg + "\""));
14518 }
14519 }
14520
14521 } 14421 }
14522 } 14422 }
14523 if (!passedLibDir && $eq$(this.config, "dev") && !files.fileExists(this.libDir )) { 14423 if (!passedLibDir && $eq$(this.config, "dev") && !files.fileExists(this.libDir )) {
14524 var temp = "frog/lib"; 14424 var temp = "frog/lib";
14525 if (files.fileExists(temp)) { 14425 if (files.fileExists(temp)) {
14526 this.libDir = temp; 14426 this.libDir = temp;
14527 } 14427 }
14528 else { 14428 else {
14529 this.libDir = "lib"; 14429 this.libDir = "lib";
14530 } 14430 }
14531 } 14431 }
14532 } 14432 }
14433 FrogOptions.prototype.tryParseSimpleOption = function(option) {
14434 if (!option.startsWith("--")) return false;
14435 switch (option.replaceAll("_", "-")) {
14436 case "--leg":
14437 case "--enable-leg":
14438 case "--leg-only":
14439
14440 this.legOnly = true;
14441 return true;
14442
14443 case "--enable-asserts":
14444
14445 this.enableAsserts = true;
14446 return true;
14447
14448 case "--enable-type-checks":
14449
14450 this.enableTypeChecks = true;
14451 this.enableAsserts = true;
14452 return true;
14453
14454 case "--verify-implements":
14455
14456 this.verifyImplements = true;
14457 return true;
14458
14459 case "--compile-all":
14460
14461 this.compileAll = true;
14462 return true;
14463
14464 case "--check-only":
14465
14466 this.checkOnly = true;
14467 return true;
14468
14469 case "--diet-parse":
14470
14471 this.dietParse = true;
14472 return true;
14473
14474 case "--ignore-unrecognized-flags":
14475
14476 this.ignoreUnrecognizedFlags = true;
14477 return true;
14478
14479 case "--verbose":
14480
14481 this.showInfo = true;
14482 return true;
14483
14484 case "--suppress-warnings":
14485
14486 this.showWarnings = false;
14487 return true;
14488
14489 case "--warnings-as-errors":
14490
14491 this.warningsAsErrors = true;
14492 return true;
14493
14494 case "--throw-on-errors":
14495
14496 this.throwOnErrors = true;
14497 return true;
14498
14499 case "--throw-on-warnings":
14500
14501 this.throwOnWarnings = true;
14502 return true;
14503
14504 case "--compile-only":
14505
14506 this.compileOnly = true;
14507 return true;
14508
14509 case "--Xforce-dynamic":
14510
14511 this.forceDynamic = true;
14512 return true;
14513
14514 case "--no-colors":
14515
14516 this.useColors = false;
14517 return true;
14518
14519 case "--Xinfer-types":
14520
14521 this.inferTypes = true;
14522 return true;
14523
14524 case "--enable-checked-mode":
14525 case "--checked":
14526
14527 this.enableTypeChecks = true;
14528 this.enableAsserts = true;
14529 return true;
14530
14531 case "--unchecked":
14532
14533 this.disableBoundsChecks = true;
14534 return true;
14535
14536 }
14537 return false;
14538 }
14533 // ********** Code for LibraryReader ************** 14539 // ********** Code for LibraryReader **************
14534 function LibraryReader() { 14540 function LibraryReader() {
14535 if ($eq$($globals.options.config, "dev")) { 14541 if ($eq$($globals.options.config, "dev")) {
14536 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/frog /html_frog.dart"), "dart:dom", joinPaths($globals.options.libDir, "../../client/ dom/frog/dom_frog.dart"), "dart:json", joinPaths($globals.options.libDir, "../.. /lib/json/json_frog.dart"), "dart:isolate", joinPaths($globals.options.libDir, " ../../lib/isolate/isolate_frog.dart")]); 14542 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/frog /html_frog.dart"), "dart:dom", joinPaths($globals.options.libDir, "../../client/ dom/frog/dom_frog.dart"), "dart:json", joinPaths($globals.options.libDir, "../.. /lib/json/json_frog.dart"), "dart:isolate", joinPaths($globals.options.libDir, " ../../lib/isolate/isolate_frog.dart")]);
14537 } 14543 }
14538 else if ($eq$($globals.options.config, "sdk")) { 14544 else if ($eq$($globals.options.config, "sdk")) {
14539 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/ frog/html_frog.dart"), "dart:dom", joinPaths($globals.options.libDir, "dom/dom_f rog.dart"), "dart:json", joinPaths($globals.options.libDir, "json/json_frog.dart "), "dart:isolate", joinPaths($globals.options.libDir, "isolate/isolate_frog.dar t")]); 14545 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_frog.dart"), "dart:dom", joinPaths($globals.options.libDir, "dom/dom_frog.d art"), "dart:json", joinPaths($globals.options.libDir, "json/json_frog.dart"), " dart:isolate", joinPaths($globals.options.libDir, "isolate/isolate_frog.dart")]) ;
14540 } 14546 }
14541 else { 14547 else {
14542 $globals.world.error(("Invalid configuration " + $globals.options.config)); 14548 $globals.world.error(("Invalid configuration " + $globals.options.config));
14543 } 14549 }
14544 } 14550 }
14545 LibraryReader.prototype.readFile = function(fullname) { 14551 LibraryReader.prototype.readFile = function(fullname) {
14546 var filename = this._specialLibs.$index(fullname); 14552 var filename = this._specialLibs.$index(fullname);
14547 if ($eq$(filename)) { 14553 if ($eq$(filename)) {
14548 filename = fullname; 14554 filename = fullname;
14549 } 14555 }
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
14867 var const$0002 = Object.create(EmptyQueueException.prototype, {}); 14873 var const$0002 = Object.create(EmptyQueueException.prototype, {});
14868 var const$0006 = Object.create(IllegalAccessException.prototype, {}); 14874 var const$0006 = Object.create(IllegalAccessException.prototype, {});
14869 var const$0007 = ImmutableList.ImmutableList$from$factory([]); 14875 var const$0007 = ImmutableList.ImmutableList$from$factory([]);
14870 var const$0009 = new JSSyntaxRegExp("^[a-zA-Z]:/"); 14876 var const$0009 = new JSSyntaxRegExp("^[a-zA-Z]:/");
14871 var const$0010 = ImmutableList.ImmutableList$from$factory(["__PROTO__", "prototy pe", "constructor"]); 14877 var const$0010 = ImmutableList.ImmutableList$from$factory(["__PROTO__", "prototy pe", "constructor"]);
14872 var const$0011 = ImmutableList.ImmutableList$from$factory(["NaN", "Infinity", "u ndefined", "eval", "parseInt", "parseFloat", "isNan", "isFinite", "decodeURI", " decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "A rray", "String", "Boolean", "Number", "Date", "RegExp", "Error", "EvalError", "R angeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "a rguments", "escape", "unescape", "applicationCache", "closed", "Components", "co ntent", "controllers", "crypto", "defaultStatus", "dialogArguments", "directorie s", "document", "frameElement", "frames", "fullScreen", "globalStorage", "histor y", "innerHeight", "innerWidth", "length", "location", "locationbar", "localStor age", "menubar", "mozInnerScreenX", "mozInnerScreenY", "mozScreenPixelsPerCssPix el", "name", "navigator", "opener", "outerHeight", "outerWidth", "pageXOffset", "pageYOffset", "parent", "personalbar", "pkcs11", "returnValue", "screen", "scro llbars", "scrollMaxX", "scrollMaxY", "self", "sessionStorage", "sidebar", "statu s", "statusbar", "toolbar", "top", "window", "alert", "addEventListener", "atob" , "back", "blur", "btoa", "captureEvents", "clearInterval", "clearTimeout", "clo se", "confirm", "disableExternalCapture", "dispatchEvent", "dump", "enableExtern alCapture", "escape", "find", "focus", "forward", "GeckoActiveXObject", "getAtte ntion", "getAttentionWithCycleCount", "getComputedStyle", "getSelection", "home" , "maximize", "minimize", "moveBy", "moveTo", "open", "openDialog", "postMessage ", "print", "prompt", "QueryInterface", "releaseEvents", "removeEventListener", "resizeBy", "resizeTo", "restore", "routeEvent", "scroll", "scrollBy", "scrollBy Lines", "scrollByPages", "scrollTo", "setInterval", "setResizeable", "setTimeout ", "showModalDialog", "sizeToContent", "stop", "uuescape", "updateCommands", "XP CNativeWrapper", "XPCSafeJSOjbectWrapper", "onabort", "onbeforeunload", "onchang e", "onclick", "onclose", "oncontextmenu", "ondragdrop", "onerror", "onfocus", " onhashchange", "onkeydown", "onkeypress", "onkeyup", "onload", "onmousedown", "o nmousemove", "onmouseout", "onmouseover", "onmouseup", "onmozorientation", "onpa int", "onreset", "onresize", "onscroll", "onselect", "onsubmit", "onunload", "on touchcancel", "ontouchend", "ontouchmove", "ontouchstart", "ongesturestart", "on gesturechange", "ongestureend", "uneval", "getPrototypeOf", "let", "yield", "abs tract", "int", "short", "boolean", "interface", "static", "byte", "long", "char" , "final", "native", "synchronized", "float", "package", "throws", "goto", "priv ate", "transient", "implements", "protected", "volatile", "double", "public", "a ttachEvent", "clientInformation", "clipboardData", "createPopup", "dialogHeight" , "dialogLeft", "dialogTop", "dialogWidth", "onafterprint", "onbeforedeactivate" , "onbeforeprint", "oncontrolselect", "ondeactivate", "onhelp", "onresizeend", " event", "external", "Debug", "Enumerator", "Global", "Image", "ActiveXObject", " VBArray", "Components", "toString", "getClass", "constructor", "prototype", "val ueOf", "Anchor", "Applet", "Attr", "Canvas", "CanvasGradient", "CanvasPattern", "CanvasRenderingContext2D", "CDATASection", "CharacterData", "Comment", "CSS2Pro perties", "CSSRule", "CSSStyleSheet", "Document", "DocumentFragment", "DocumentT ype", "DOMException", "DOMImplementation", "DOMParser", "Element", "Event", "Ext ernalInterface", "FlashPlayer", "Form", "Frame", "History", "HTMLCollection", "H TMLDocument", "HTMLElement", "IFrame", "Image", "Input", "JSObject", "KeyEvent", "Link", "Location", "MimeType", "MouseEvent", "Navigator", "Node", "NodeList", "Option", "Plugin", "ProcessingInstruction", "Range", "RangeException", "Screen" , "Select", "Table", "TableCell", "TableRow", "TableSelection", "Text", "TextAre a", "UIEvent", "Window", "XMLHttpRequest", "XMLSerializer", "XPathException", "X PathResult", "XSLTProcessor", "java", "Packages", "netscape", "sun", "JavaObject ", "JavaClass", "JavaArray", "JavaMember", "$wnd", "$doc", "$entry", "$moduleNam e", "$moduleBase", "$gwt_version", "$sessionId", "$stack", "$stackDepth", "$loca tion", "call"]); 14878 var const$0011 = ImmutableList.ImmutableList$from$factory(["NaN", "Infinity", "u ndefined", "eval", "parseInt", "parseFloat", "isNan", "isFinite", "decodeURI", " decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "A rray", "String", "Boolean", "Number", "Date", "RegExp", "Error", "EvalError", "R angeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "a rguments", "escape", "unescape", "applicationCache", "closed", "Components", "co ntent", "controllers", "crypto", "defaultStatus", "dialogArguments", "directorie s", "document", "frameElement", "frames", "fullScreen", "globalStorage", "histor y", "innerHeight", "innerWidth", "length", "location", "locationbar", "localStor age", "menubar", "mozInnerScreenX", "mozInnerScreenY", "mozScreenPixelsPerCssPix el", "name", "navigator", "opener", "outerHeight", "outerWidth", "pageXOffset", "pageYOffset", "parent", "personalbar", "pkcs11", "returnValue", "screen", "scro llbars", "scrollMaxX", "scrollMaxY", "self", "sessionStorage", "sidebar", "statu s", "statusbar", "toolbar", "top", "window", "alert", "addEventListener", "atob" , "back", "blur", "btoa", "captureEvents", "clearInterval", "clearTimeout", "clo se", "confirm", "disableExternalCapture", "dispatchEvent", "dump", "enableExtern alCapture", "escape", "find", "focus", "forward", "GeckoActiveXObject", "getAtte ntion", "getAttentionWithCycleCount", "getComputedStyle", "getSelection", "home" , "maximize", "minimize", "moveBy", "moveTo", "open", "openDialog", "postMessage ", "print", "prompt", "QueryInterface", "releaseEvents", "removeEventListener", "resizeBy", "resizeTo", "restore", "routeEvent", "scroll", "scrollBy", "scrollBy Lines", "scrollByPages", "scrollTo", "setInterval", "setResizeable", "setTimeout ", "showModalDialog", "sizeToContent", "stop", "uuescape", "updateCommands", "XP CNativeWrapper", "XPCSafeJSOjbectWrapper", "onabort", "onbeforeunload", "onchang e", "onclick", "onclose", "oncontextmenu", "ondragdrop", "onerror", "onfocus", " onhashchange", "onkeydown", "onkeypress", "onkeyup", "onload", "onmousedown", "o nmousemove", "onmouseout", "onmouseover", "onmouseup", "onmozorientation", "onpa int", "onreset", "onresize", "onscroll", "onselect", "onsubmit", "onunload", "on touchcancel", "ontouchend", "ontouchmove", "ontouchstart", "ongesturestart", "on gesturechange", "ongestureend", "uneval", "getPrototypeOf", "let", "yield", "abs tract", "int", "short", "boolean", "interface", "static", "byte", "long", "char" , "final", "native", "synchronized", "float", "package", "throws", "goto", "priv ate", "transient", "implements", "protected", "volatile", "double", "public", "a ttachEvent", "clientInformation", "clipboardData", "createPopup", "dialogHeight" , "dialogLeft", "dialogTop", "dialogWidth", "onafterprint", "onbeforedeactivate" , "onbeforeprint", "oncontrolselect", "ondeactivate", "onhelp", "onresizeend", " event", "external", "Debug", "Enumerator", "Global", "Image", "ActiveXObject", " VBArray", "Components", "toString", "getClass", "constructor", "prototype", "val ueOf", "Anchor", "Applet", "Attr", "Canvas", "CanvasGradient", "CanvasPattern", "CanvasRenderingContext2D", "CDATASection", "CharacterData", "Comment", "CSS2Pro perties", "CSSRule", "CSSStyleSheet", "Document", "DocumentFragment", "DocumentT ype", "DOMException", "DOMImplementation", "DOMParser", "Element", "Event", "Ext ernalInterface", "FlashPlayer", "Form", "Frame", "History", "HTMLCollection", "H TMLDocument", "HTMLElement", "IFrame", "Image", "Input", "JSObject", "KeyEvent", "Link", "Location", "MimeType", "MouseEvent", "Navigator", "Node", "NodeList", "Option", "Plugin", "ProcessingInstruction", "Range", "RangeException", "Screen" , "Select", "Table", "TableCell", "TableRow", "TableSelection", "Text", "TextAre a", "UIEvent", "Window", "XMLHttpRequest", "XMLSerializer", "XPathException", "X PathResult", "XSLTProcessor", "java", "Packages", "netscape", "sun", "JavaObject ", "JavaClass", "JavaArray", "JavaMember", "$wnd", "$doc", "$entry", "$moduleNam e", "$moduleBase", "$gwt_version", "$sessionId", "$stack", "$stackDepth", "$loca tion", "call"]);
14873 var const$0012 = ImmutableList.ImmutableList$from$factory(["break", "delete", "f unction", "return", "typeof", "case", "do", "if", "switch", "var", "catch", "els e", "in", "this", "void", "continue", "false", "instanceof", "throw", "while", " debugger", "finally", "new", "true", "with", "default", "for", "null", "try", "a bstract", "double", "goto", "native", "static", "boolean", "enum", "implements", "package", "super", "byte", "export", "import", "private", "synchronized", "cha r", "extends", "int", "protected", "throws", "class", "final", "interface", "pub lic", "transient", "const", "float", "long", "short", "volatile"]); 14879 var const$0012 = ImmutableList.ImmutableList$from$factory(["break", "delete", "f unction", "return", "typeof", "case", "do", "if", "switch", "var", "catch", "els e", "in", "this", "void", "continue", "false", "instanceof", "throw", "while", " debugger", "finally", "new", "true", "with", "default", "for", "null", "try", "a bstract", "double", "goto", "native", "static", "boolean", "enum", "implements", "package", "super", "byte", "export", "import", "private", "synchronized", "cha r", "extends", "int", "protected", "throws", "class", "final", "interface", "pub lic", "transient", "const", "float", "long", "short", "volatile"]);
14874 var $globals = {}; 14880 var $globals = {};
14875 $static_init(); 14881 $static_init();
14876 main(); 14882 main();
OLDNEW
« no previous file with comments | « frog/leg/native_emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698