| OLD | NEW |
| 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 BailoutException { | 5 class BailoutException { |
| 6 final String reason; | 6 final String reason; |
| 7 | 7 |
| 8 const BailoutException(this.reason); | 8 const BailoutException(this.reason); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 unparseValidator = new UnparseValidator(compiler, validateUnparse), | 21 unparseValidator = new UnparseValidator(compiler, validateUnparse), |
| 22 resolvedClassMembers = new Map<ClassElement, Set<Element>>(), | 22 resolvedClassMembers = new Map<ClassElement, Set<Element>>(), |
| 23 super(compiler) { | 23 super(compiler) { |
| 24 tasks.add(unparseValidator); | 24 tasks.add(unparseValidator); |
| 25 } | 25 } |
| 26 | 26 |
| 27 void enqueueHelpers(Enqueuer world) { | 27 void enqueueHelpers(Enqueuer world) { |
| 28 // TODO(antonm): Implement this method, if needed. | 28 // TODO(antonm): Implement this method, if needed. |
| 29 } | 29 } |
| 30 | 30 |
| 31 CodeBlock codegen(WorkItem work) { return new CodeBlock(null, null); } | 31 CodeBuffer codegen(WorkItem work) { return new CodeBuffer(); } |
| 32 | 32 |
| 33 void processNativeClasses(Enqueuer world, | 33 void processNativeClasses(Enqueuer world, |
| 34 Collection<LibraryElement> libraries) { | 34 Collection<LibraryElement> libraries) { |
| 35 } | 35 } |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * Adds given class element with its member element to resolved classes | 38 * Adds given class element with its member element to resolved classes |
| 39 * collections. | 39 * collections. |
| 40 */ | 40 */ |
| 41 void addMemberToClass(Element element, ClassElement classElement) { | 41 void addMemberToClass(Element element, ClassElement classElement) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 compiler.assembledCode = ''' | 90 compiler.assembledCode = ''' |
| 91 main() { | 91 main() { |
| 92 final bailout_reason = "${e.reason}"; | 92 final bailout_reason = "${e.reason}"; |
| 93 } | 93 } |
| 94 '''; | 94 '''; |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 log(String message) => compiler.log('[DartBackend] $message'); | 98 log(String message) => compiler.log('[DartBackend] $message'); |
| 99 } | 99 } |
| OLD | NEW |