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

Side by Side Diff: frog/frogsh

Issue 8591026: Roll DOM APIs forward on IDL & update Frog DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address siggi's comment Created 9 years, 1 month 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 #!/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 21463 matching lines...) Expand 10 before | Expand all | Expand 10 after
21474 this.libDir = $assert_String(temp); 21474 this.libDir = $assert_String(temp);
21475 } 21475 }
21476 else { 21476 else {
21477 this.libDir = 'lib'; 21477 this.libDir = 'lib';
21478 } 21478 }
21479 } 21479 }
21480 } 21480 }
21481 // ********** Code for LibraryReader ************** 21481 // ********** Code for LibraryReader **************
21482 function LibraryReader() { 21482 function LibraryReader() {
21483 // Initializers done 21483 // Initializers done
21484 this._specialLibs = $map(['dart:core', joinPaths(options.libDir, 'corelib.dart '), 'dart:coreimpl', joinPaths(options.libDir, 'corelib_impl.dart'), 'dart:html' , joinPaths(options.libDir, '../../client/html/release/html.dart'), 'dart:dom', joinPaths(options.libDir, 'dom/dom.dart'), 'dart:json', joinPaths(options.libDir , 'json.dart')]); 21484 this._specialLibs = $map(['dart:core', joinPaths(options.libDir, 'corelib.dart '), 'dart:coreimpl', joinPaths(options.libDir, 'corelib_impl.dart'), 'dart:html' , joinPaths(options.libDir, '../../client/html/release/html.dart'), 'dart:dom', joinPaths(options.libDir, '../../client/dom/frog/frog_dom.dart'), 'dart:json', j oinPaths(options.libDir, 'json.dart')]);
21485 } 21485 }
21486 LibraryReader.prototype.readFile = function(fullname) { 21486 LibraryReader.prototype.readFile = function(fullname) {
21487 var filename = this._specialLibs.$index(fullname); 21487 var filename = this._specialLibs.$index(fullname);
21488 if ($notnull_bool(filename == null)) { 21488 if ($notnull_bool(filename == null)) {
21489 filename = fullname; 21489 filename = fullname;
21490 } 21490 }
21491 if ($notnull_bool(world.files.fileExists($assert_String(filename)))) { 21491 if ($notnull_bool(world.files.fileExists($assert_String(filename)))) {
21492 return new SourceFile(filename, world.files.readAll($assert_String(filename) )); 21492 return new SourceFile(filename, world.files.readAll($assert_String(filename) ));
21493 } 21493 }
21494 else { 21494 else {
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
22111 INTERFACE, 22111 INTERFACE,
22112 LIBRARY, 22112 LIBRARY,
22113 NATIVE, 22113 NATIVE,
22114 NEGATE, 22114 NEGATE,
22115 OPERATOR, 22115 OPERATOR,
22116 SET, 22116 SET,
22117 SOURCE, 22117 SOURCE,
22118 STATIC, 22118 STATIC,
22119 TYPEDEF ]*/; 22119 TYPEDEF ]*/;
22120 main(); 22120 main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698