| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.js_emitter.full_emitter; | 5 library dart2js.js_emitter.full_emitter; |
| 6 | 6 |
| 7 import 'dart:collection' show HashMap; | 7 import 'dart:collection' show HashMap; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 return jsAst.js('#.#()', | 331 return jsAst.js('#.#()', |
| 332 [namer.globalObjectFor(element), namer.staticClosureName(element)]); | 332 [namer.globalObjectFor(element), namer.staticClosureName(element)]); |
| 333 } | 333 } |
| 334 | 334 |
| 335 @override | 335 @override |
| 336 jsAst.PropertyAccess staticFieldAccess(FieldElement element) { | 336 jsAst.PropertyAccess staticFieldAccess(FieldElement element) { |
| 337 return globalPropertyAccess(element); | 337 return globalPropertyAccess(element); |
| 338 } | 338 } |
| 339 | 339 |
| 340 @override | 340 @override |
| 341 jsAst.PropertyAccess staticFunctionAccess(FunctionElement element) { | 341 jsAst.PropertyAccess staticFunctionAccess(MethodElement element) { |
| 342 return globalPropertyAccess(element); | 342 return globalPropertyAccess(element); |
| 343 } | 343 } |
| 344 | 344 |
| 345 @override | 345 @override |
| 346 jsAst.PropertyAccess constructorAccess(ClassElement element) { | 346 jsAst.PropertyAccess constructorAccess(ClassElement element) { |
| 347 return globalPropertyAccess(element); | 347 return globalPropertyAccess(element); |
| 348 } | 348 } |
| 349 | 349 |
| 350 @override | 350 @override |
| 351 jsAst.PropertyAccess prototypeAccess( | 351 jsAst.PropertyAccess prototypeAccess( |
| (...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 if (cachedElements.isEmpty) return; | 2179 if (cachedElements.isEmpty) return; |
| 2180 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { | 2180 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { |
| 2181 if (element.isInstanceMember) { | 2181 if (element.isInstanceMember) { |
| 2182 cachedClassBuilders.remove(element.enclosingClass); | 2182 cachedClassBuilders.remove(element.enclosingClass); |
| 2183 | 2183 |
| 2184 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2184 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2185 } | 2185 } |
| 2186 } | 2186 } |
| 2187 } | 2187 } |
| 2188 } | 2188 } |
| OLD | NEW |