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

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

Issue 9351020: Implement try/catch without finally, and without type checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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/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 11
11 WorkItem.toCompile(this.element) : resolutionTree = null { 12 WorkItem.toCompile(this.element) : resolutionTree = null {
12 run = this.compile; 13 run = this.compile;
13 } 14 }
14 15
15 WorkItem.toCodegen(this.element, this.resolutionTree) { 16 WorkItem.toCodegen(this.element, this.resolutionTree) {
16 run = this.codegen; 17 run = this.codegen;
17 } 18 }
18 19
19 WorkItem.bailoutVersion(this.element, this.resolutionTree, this.bailouts) { 20 WorkItem.bailoutVersion(this.element, this.resolutionTree, this.bailouts) {
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 339
339 class CompilerCancelledException implements Exception { 340 class CompilerCancelledException implements Exception {
340 final String reason; 341 final String reason;
341 CompilerCancelledException(this.reason); 342 CompilerCancelledException(this.reason);
342 343
343 String toString() { 344 String toString() {
344 String banner = 'compiler cancelled'; 345 String banner = 'compiler cancelled';
345 return (reason !== null) ? '$banner: $reason' : '$banner'; 346 return (reason !== null) ? '$banner: $reason' : '$banner';
346 } 347 }
347 } 348 }
OLDNEW
« no previous file with comments | « no previous file | frog/leg/frog_leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698