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

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

Issue 9639012: Implement the compiler API and use it in frog_leg.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments and created separate implementation library 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 | « dart/frog/leg/apiimpl.dart ('k') | dart/frog/leg/frog_leg.dart » ('j') | no next file with comments »
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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 360 }
361 361
362 Object compileVariable(VariableElement element) { 362 Object compileVariable(VariableElement element) {
363 return withCurrentElement(element, () { 363 return withCurrentElement(element, () {
364 compile(new WorkItem.toCompile(element)); 364 compile(new WorkItem.toCompile(element));
365 return constantHandler.compileVariable(element); 365 return constantHandler.compileVariable(element);
366 }); 366 });
367 } 367 }
368 368
369 reportWarning(Node node, var message) {} 369 reportWarning(Node node, var message) {}
370 reportError(Node node, var message) {} 370
371 reportError(Node node, var message) => cancel(message, node: node);
371 372
372 Script readScript(Uri uri, [ScriptTag node]) { 373 Script readScript(Uri uri, [ScriptTag node]) {
373 unimplemented('Compiler.readScript'); 374 unimplemented('Compiler.readScript');
374 } 375 }
375 376
376 String get legDirectory() { 377 String get legDirectory() {
377 unimplemented('Compiler.legDirectory'); 378 unimplemented('Compiler.legDirectory');
378 } 379 }
379 380
380 Element findHelper(SourceString name) => jsHelperLibrary.find(name); 381 Element findHelper(SourceString name) => jsHelperLibrary.find(name);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 423
423 // TODO(ahe): Remove when the VM supports implicit interfaces. 424 // TODO(ahe): Remove when the VM supports implicit interfaces.
424 class LTracer implements Tracer { 425 class LTracer implements Tracer {
425 const LTracer(); 426 const LTracer();
426 final bool enabled = false; 427 final bool enabled = false;
427 void traceGraph(String name, var graph) { 428 void traceGraph(String name, var graph) {
428 } 429 }
429 void close() { 430 void close() {
430 } 431 }
431 } 432 }
OLDNEW
« no previous file with comments | « dart/frog/leg/apiimpl.dart ('k') | dart/frog/leg/frog_leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698