| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 @override | 224 @override |
| 225 jsAst.PropertyAccess interceptorClassAccess(ClassElement element) { | 225 jsAst.PropertyAccess interceptorClassAccess(ClassElement element) { |
| 226 return globalPropertyAccess(element); | 226 return globalPropertyAccess(element); |
| 227 } | 227 } |
| 228 | 228 |
| 229 @override | 229 @override |
| 230 jsAst.PropertyAccess typeAccess(Element element) { | 230 jsAst.PropertyAccess typeAccess(Element element) { |
| 231 return globalPropertyAccess(element); | 231 return globalPropertyAccess(element); |
| 232 } | 232 } |
| 233 | 233 |
| 234 @override |
| 235 jsAst.PropertyAccess closureClassConstructorAccess(ClosureClassElement e) { |
| 236 return globalPropertyAccess(e); |
| 237 } |
| 238 |
| 234 List<jsAst.Statement> buildTrivialNsmHandlers(){ | 239 List<jsAst.Statement> buildTrivialNsmHandlers(){ |
| 235 return nsmEmitter.buildTrivialNsmHandlers(); | 240 return nsmEmitter.buildTrivialNsmHandlers(); |
| 236 } | 241 } |
| 237 | 242 |
| 238 jsAst.FunctionDeclaration get generateAccessorFunction { | 243 jsAst.FunctionDeclaration get generateAccessorFunction { |
| 239 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; | 244 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; |
| 240 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; | 245 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; |
| 241 const RANGE1_ADJUST = - (FIRST_FIELD_CODE - RANGE1_FIRST); | 246 const RANGE1_ADJUST = - (FIRST_FIELD_CODE - RANGE1_FIRST); |
| 242 const RANGE2_ADJUST = - (FIRST_FIELD_CODE + RANGE1_SIZE - RANGE2_FIRST); | 247 const RANGE2_ADJUST = - (FIRST_FIELD_CODE + RANGE1_SIZE - RANGE2_FIRST); |
| 243 const RANGE3_ADJUST = | 248 const RANGE3_ADJUST = |
| (...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2092 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2097 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { |
| 2093 if (element.isInstanceMember) { | 2098 if (element.isInstanceMember) { |
| 2094 cachedClassBuilders.remove(element.enclosingClass); | 2099 cachedClassBuilders.remove(element.enclosingClass); |
| 2095 | 2100 |
| 2096 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2101 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2097 | 2102 |
| 2098 } | 2103 } |
| 2099 } | 2104 } |
| 2100 } | 2105 } |
| 2101 } | 2106 } |
| OLD | NEW |