Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library('leg'); | 5 #library('leg'); |
| 6 | 6 |
| 7 #import('io/io.dart', prefix: 'io'); | 7 #import('io/io.dart', prefix: 'io'); |
| 8 | 8 |
| 9 #import('elements/elements.dart'); | 9 #import('elements/elements.dart'); |
| 10 #import('scanner/scannerlib.dart'); | 10 #import('scanner/scannerlib.dart'); |
| 11 #import('scanner/scanner_implementation.dart'); | 11 #import('scanner/scanner_implementation.dart'); |
| 12 #import('ssa/ssa.dart'); | 12 #import('ssa/ssa.dart'); |
| 13 #import('tree/tree.dart'); | 13 #import('tree/tree.dart'); |
| 14 #import('util/util.dart'); | 14 #import('util/util.dart'); |
| 15 | 15 |
| 16 #source('compiler.dart'); | 16 #source('compiler.dart'); |
| 17 #source('resolver.dart'); | 17 #source('resolver.dart'); |
| 18 #source('script.dart'); | 18 #source('script.dart'); |
| 19 #source('tree_validator.dart'); | 19 #source('tree_validator.dart'); |
| 20 #source('typechecker.dart'); | 20 #source('typechecker.dart'); |
| 21 #source('universe.dart'); | 21 #source('universe.dart'); |
| 22 #source('warnings.dart'); | 22 #source('warnings.dart'); |
| 23 #source('emitter.dart'); | 23 #source('emitter.dart'); |
| 24 #source('namer.dart'); | 24 #source('namer.dart'); |
| 25 | 25 |
| 26 final bool GENERATE_SSA_TRACE = false; | 26 final bool GENERATE_SSA_TRACE = false; |
| 27 | 27 |
| 28 void unreachable() { | 28 void unreachable([msg = "UNREACHABLE"]) { |
|
kasperl
2012/01/05 07:01:52
msg -> message
floitsch
2012/01/05 12:18:38
Done.
ngeoffray
2012/01/05 14:05:46
Since we'll get rid of this method, I suggest you
floitsch
2012/01/24 13:28:37
Done.
| |
| 29 throw const Exception("Internal Error (Leg): UNREACHABLE"); | 29 throw new Exception("Internal Error (Leg): $msg"); |
| 30 } | 30 } |
| OLD | NEW |