| 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 part of dart2js.js_emitter; | 5 part of dart2js.js_emitter; |
| 6 | 6 |
| 7 | 7 |
| 8 class OldEmitter implements Emitter { | 8 class OldEmitter implements Emitter { |
| 9 final Compiler compiler; | 9 final Compiler compiler; |
| 10 final CodeEmitterTask task; | 10 final CodeEmitterTask task; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 @override | 222 @override |
| 223 jsAst.PropertyAccess interceptorClassAccess(ClassElement element) { | 223 jsAst.PropertyAccess interceptorClassAccess(ClassElement element) { |
| 224 return globalPropertyAccess(element); | 224 return globalPropertyAccess(element); |
| 225 } | 225 } |
| 226 | 226 |
| 227 @override | 227 @override |
| 228 jsAst.PropertyAccess typeAccess(Element element) { | 228 jsAst.PropertyAccess typeAccess(Element element) { |
| 229 return globalPropertyAccess(element); | 229 return globalPropertyAccess(element); |
| 230 } | 230 } |
| 231 | 231 |
| 232 @override | |
| 233 jsAst.PropertyAccess closureClassConstructorAccess(ClosureClassElement e) { | |
| 234 return globalPropertyAccess(e); | |
| 235 } | |
| 236 | |
| 237 List<jsAst.Statement> buildTrivialNsmHandlers(){ | 232 List<jsAst.Statement> buildTrivialNsmHandlers(){ |
| 238 return nsmEmitter.buildTrivialNsmHandlers(); | 233 return nsmEmitter.buildTrivialNsmHandlers(); |
| 239 } | 234 } |
| 240 | 235 |
| 241 jsAst.FunctionDeclaration get generateAccessorFunction { | 236 jsAst.FunctionDeclaration get generateAccessorFunction { |
| 242 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; | 237 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; |
| 243 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; | 238 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; |
| 244 const RANGE1_ADJUST = - (FIRST_FIELD_CODE - RANGE1_FIRST); | 239 const RANGE1_ADJUST = - (FIRST_FIELD_CODE - RANGE1_FIRST); |
| 245 const RANGE2_ADJUST = - (FIRST_FIELD_CODE + RANGE1_SIZE - RANGE2_FIRST); | 240 const RANGE2_ADJUST = - (FIRST_FIELD_CODE + RANGE1_SIZE - RANGE2_FIRST); |
| 246 const RANGE3_ADJUST = | 241 const RANGE3_ADJUST = |
| (...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2095 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { |
| 2101 if (element.isInstanceMember) { | 2096 if (element.isInstanceMember) { |
| 2102 cachedClassBuilders.remove(element.enclosingClass); | 2097 cachedClassBuilders.remove(element.enclosingClass); |
| 2103 | 2098 |
| 2104 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2099 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2105 | 2100 |
| 2106 } | 2101 } |
| 2107 } | 2102 } |
| 2108 } | 2103 } |
| 2109 } | 2104 } |
| OLD | NEW |