| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart2js.ir_builder_task; | 5 library dart2js.ir_builder_task; |
| 6 | 6 |
| 7 import '../closure.dart' as closurelib; | 7 import '../closure.dart' as closurelib; |
| 8 import '../closure.dart' hide ClosureScope; | 8 import '../closure.dart' hide ClosureScope; |
| 9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 | 2180 |
| 2181 FunctionElement get throwTypeErrorHelper => _backend.getThrowTypeError(); | 2181 FunctionElement get throwTypeErrorHelper => _backend.getThrowTypeError(); |
| 2182 | 2182 |
| 2183 ClassElement get nullClass => _compiler.nullClass; | 2183 ClassElement get nullClass => _compiler.nullClass; |
| 2184 | 2184 |
| 2185 DartType unaliasType(DartType type) => type.unalias(_compiler); | 2185 DartType unaliasType(DartType type) => type.unalias(_compiler); |
| 2186 | 2186 |
| 2187 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { | 2187 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { |
| 2188 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); | 2188 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); |
| 2189 } | 2189 } |
| 2190 |
| 2191 FieldElement locateSingleField(Selector selector, TypeMask type) { |
| 2192 return _compiler.world.locateSingleField(selector, type); |
| 2193 } |
| 2190 } | 2194 } |
| 2191 | 2195 |
| 2192 /// IR builder specific to the JavaScript backend, coupled to the [JsIrBuilder]. | 2196 /// IR builder specific to the JavaScript backend, coupled to the [JsIrBuilder]. |
| 2193 class JsIrBuilderVisitor extends IrBuilderVisitor { | 2197 class JsIrBuilderVisitor extends IrBuilderVisitor { |
| 2194 JavaScriptBackend get backend => compiler.backend; | 2198 JavaScriptBackend get backend => compiler.backend; |
| 2195 | 2199 |
| 2196 /// Result of closure conversion for the current body of code. | 2200 /// Result of closure conversion for the current body of code. |
| 2197 /// | 2201 /// |
| 2198 /// Will be initialized upon entering the body of a function. | 2202 /// Will be initialized upon entering the body of a function. |
| 2199 /// It is computed by the [ClosureTranslator]. | 2203 /// It is computed by the [ClosureTranslator]. |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3273 } | 3277 } |
| 3274 | 3278 |
| 3275 processSetStatic(ir.SetStatic node) { | 3279 processSetStatic(ir.SetStatic node) { |
| 3276 node.body = replacementFor(node.body); | 3280 node.body = replacementFor(node.body); |
| 3277 } | 3281 } |
| 3278 | 3282 |
| 3279 processContinuation(ir.Continuation node) { | 3283 processContinuation(ir.Continuation node) { |
| 3280 node.body = replacementFor(node.body); | 3284 node.body = replacementFor(node.body); |
| 3281 } | 3285 } |
| 3282 } | 3286 } |
| OLD | NEW |