Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 862703002: Implement constructor bodies and initializers in CPS->JS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase again Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698