| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 @override | 232 @override |
| 233 jsAst.PropertyAccess interceptorClassAccess(ClassElement element) { | 233 jsAst.PropertyAccess interceptorClassAccess(ClassElement element) { |
| 234 return globalPropertyAccess(element); | 234 return globalPropertyAccess(element); |
| 235 } | 235 } |
| 236 | 236 |
| 237 @override | 237 @override |
| 238 jsAst.PropertyAccess typeAccess(Element element) { | 238 jsAst.PropertyAccess typeAccess(Element element) { |
| 239 return globalPropertyAccess(element); | 239 return globalPropertyAccess(element); |
| 240 } | 240 } |
| 241 | 241 |
| 242 @override |
| 243 jsAst.PropertyAccess closureClassConstructorAccess(ClosureClassElement e) { |
| 244 return globalPropertyAccess(e); |
| 245 } |
| 246 |
| 242 List<jsAst.Statement> buildTrivialNsmHandlers(){ | 247 List<jsAst.Statement> buildTrivialNsmHandlers(){ |
| 243 return nsmEmitter.buildTrivialNsmHandlers(); | 248 return nsmEmitter.buildTrivialNsmHandlers(); |
| 244 } | 249 } |
| 245 | 250 |
| 246 jsAst.FunctionDeclaration get generateAccessorFunction { | 251 jsAst.FunctionDeclaration get generateAccessorFunction { |
| 247 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; | 252 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; |
| 248 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; | 253 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; |
| 249 const RANGE1_ADJUST = - (FIRST_FIELD_CODE - RANGE1_FIRST); | 254 const RANGE1_ADJUST = - (FIRST_FIELD_CODE - RANGE1_FIRST); |
| 250 const RANGE2_ADJUST = - (FIRST_FIELD_CODE + RANGE1_SIZE - RANGE2_FIRST); | 255 const RANGE2_ADJUST = - (FIRST_FIELD_CODE + RANGE1_SIZE - RANGE2_FIRST); |
| 251 const RANGE3_ADJUST = | 256 const RANGE3_ADJUST = |
| (...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2070 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2075 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { |
| 2071 if (element.isInstanceMember) { | 2076 if (element.isInstanceMember) { |
| 2072 cachedClassBuilders.remove(element.enclosingClass); | 2077 cachedClassBuilders.remove(element.enclosingClass); |
| 2073 | 2078 |
| 2074 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2079 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
| 2075 | 2080 |
| 2076 } | 2081 } |
| 2077 } | 2082 } |
| 2078 } | 2083 } |
| 2079 } | 2084 } |
| OLD | NEW |