| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import '../closure.dart'; |
| 5 import '../common/codegen.dart' show CodegenRegistry; | 6 import '../common/codegen.dart' show CodegenRegistry; |
| 6 import '../common_elements.dart'; | 7 import '../common_elements.dart'; |
| 7 import '../compiler.dart'; | 8 import '../compiler.dart'; |
| 8 import '../diagnostics/diagnostic_listener.dart'; | 9 import '../diagnostics/diagnostic_listener.dart'; |
| 9 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
| 10 import '../elements/entities.dart' show Entity, Local; | 11 import '../elements/entities.dart' show Entity, Local; |
| 11 import '../elements/resolution_types.dart'; | 12 import '../elements/resolution_types.dart'; |
| 12 import '../js_backend/js_backend.dart'; | 13 import '../js_backend/js_backend.dart'; |
| 13 import '../options.dart'; | 14 import '../options.dart'; |
| 14 import '../resolution/tree_elements.dart'; | 15 import '../resolution/tree_elements.dart'; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 51 |
| 51 DiagnosticReporter get reporter => backend.reporter; | 52 DiagnosticReporter get reporter => backend.reporter; |
| 52 | 53 |
| 53 CompilerOptions get options => compiler.options; | 54 CompilerOptions get options => compiler.options; |
| 54 | 55 |
| 55 CommonElements get commonElements => closedWorld.commonElements; | 56 CommonElements get commonElements => closedWorld.commonElements; |
| 56 | 57 |
| 57 GlobalTypeInferenceResults get globalInferenceResults => | 58 GlobalTypeInferenceResults get globalInferenceResults => |
| 58 compiler.globalInference.results; | 59 compiler.globalInference.results; |
| 59 | 60 |
| 61 ClosureTask get closureToClassMapper => compiler.closureToClassMapper; |
| 62 |
| 60 /// Used to track the locals while building the graph. | 63 /// Used to track the locals while building the graph. |
| 61 LocalsHandler localsHandler; | 64 LocalsHandler localsHandler; |
| 62 | 65 |
| 63 /// A stack of instructions. | 66 /// A stack of instructions. |
| 64 /// | 67 /// |
| 65 /// We build the SSA graph by simulating a stack machine. | 68 /// We build the SSA graph by simulating a stack machine. |
| 66 List<HInstruction> stack = <HInstruction>[]; | 69 List<HInstruction> stack = <HInstruction>[]; |
| 67 | 70 |
| 68 /// The count of nested loops we are currently building. | 71 /// The count of nested loops we are currently building. |
| 69 /// | 72 /// |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 open(newBlock); | 238 open(newBlock); |
| 236 } | 239 } |
| 237 | 240 |
| 238 HInstruction callSetRuntimeTypeInfo( | 241 HInstruction callSetRuntimeTypeInfo( |
| 239 HInstruction typeInfo, HInstruction newObject); | 242 HInstruction typeInfo, HInstruction newObject); |
| 240 | 243 |
| 241 /// The element for which this SSA builder is being used. | 244 /// The element for which this SSA builder is being used. |
| 242 Element get targetElement; | 245 Element get targetElement; |
| 243 TypeBuilder get typeBuilder; | 246 TypeBuilder get typeBuilder; |
| 244 } | 247 } |
| OLD | NEW |