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

Side by Side Diff: frog/leg/compiler.dart

Issue 9750003: Write our JS blobs for handling native classes in Dart. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « no previous file | frog/leg/emitter.dart » ('j') | frog/leg/lib/js_helper.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class WorkItem { 5 class WorkItem {
6 final Element element; 6 final Element element;
7 TreeElements resolutionTree; 7 TreeElements resolutionTree;
8 Function run; 8 Function run;
9 Map<int, BailoutInfo> bailouts = null; 9 Map<int, BailoutInfo> bailouts = null;
10 bool allowSpeculativeOptimization = true; 10 bool allowSpeculativeOptimization = true;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 library.define(new ForeignElement( 255 library.define(new ForeignElement(
256 const SourceString('JS'), library), this); 256 const SourceString('JS'), library), this);
257 library.define(new ForeignElement( 257 library.define(new ForeignElement(
258 const SourceString('UNINTERCEPTED'), library), this); 258 const SourceString('UNINTERCEPTED'), library), this);
259 library.define(new ForeignElement( 259 library.define(new ForeignElement(
260 const SourceString('JS_HAS_EQUALS'), library), this); 260 const SourceString('JS_HAS_EQUALS'), library), this);
261 library.define(new ForeignElement( 261 library.define(new ForeignElement(
262 const SourceString('JS_CURRENT_ISOLATE'), library), this); 262 const SourceString('JS_CURRENT_ISOLATE'), library), this);
263 library.define(new ForeignElement( 263 library.define(new ForeignElement(
264 const SourceString('JS_CALL_IN_ISOLATE'), library), this); 264 const SourceString('JS_CALL_IN_ISOLATE'), library), this);
265 library.define(new ForeignElement(
266 const SourceString('JS_TO_CLOSURE'), library), this);
265 } 267 }
266 268
267 void runCompiler(Uri uri) { 269 void runCompiler(Uri uri) {
268 scanBuiltinLibraries(); 270 scanBuiltinLibraries();
269 mainApp = scanner.loadLibrary(uri, null); 271 mainApp = scanner.loadLibrary(uri, null);
270 Element element; 272 Element element;
271 withCurrentElement(mainApp, () { 273 withCurrentElement(mainApp, () {
272 element = mainApp.find(MAIN); 274 element = mainApp.find(MAIN);
273 if (element === null) cancel('Could not find $MAIN'); 275 if (element === null) cancel('Could not find $MAIN');
274 }); 276 });
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 } 518 }
517 } 519 }
518 520
519 class SourceSpan { 521 class SourceSpan {
520 final Uri uri; 522 final Uri uri;
521 final int begin; 523 final int begin;
522 final int end; 524 final int end;
523 525
524 const SourceSpan(this.uri, this.begin, this.end); 526 const SourceSpan(this.uri, this.begin, this.end);
525 } 527 }
OLDNEW
« no previous file with comments | « no previous file | frog/leg/emitter.dart » ('j') | frog/leg/lib/js_helper.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698