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

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: Fix test case 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 234 @override
235 jsAst.PropertyAccess closureClassConstructorAccess(ClosureClassElement e) { 235 jsAst.PropertyAccess internalConstructorAccess(ClassElement e) {
236 return globalPropertyAccess(e); 236 return globalPropertyAccess(e);
237 } 237 }
238 238
239 List<jsAst.Statement> buildTrivialNsmHandlers(){ 239 List<jsAst.Statement> buildTrivialNsmHandlers(){
240 return nsmEmitter.buildTrivialNsmHandlers(); 240 return nsmEmitter.buildTrivialNsmHandlers();
241 } 241 }
242 242
243 jsAst.FunctionDeclaration get generateAccessorFunction { 243 jsAst.FunctionDeclaration get generateAccessorFunction {
244 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1; 244 const RANGE1_SIZE = RANGE1_LAST - RANGE1_FIRST + 1;
245 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1; 245 const RANGE2_SIZE = RANGE2_LAST - RANGE2_FIRST + 1;
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2095 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2096 if (element.isInstanceMember) { 2096 if (element.isInstanceMember) {
2097 cachedClassBuilders.remove(element.enclosingClass); 2097 cachedClassBuilders.remove(element.enclosingClass);
2098 2098
2099 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2099 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2100 2100
2101 } 2101 }
2102 } 2102 }
2103 } 2103 }
2104 } 2104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698