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

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

Issue 831133004: Use closure conversion in new dart2js backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1807 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2064 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2060 if (element.isInstanceMember) { 2065 if (element.isInstanceMember) {
2061 cachedClassBuilders.remove(element.enclosingClass); 2066 cachedClassBuilders.remove(element.enclosingClass);
2062 2067
2063 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2068 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2064 2069
2065 } 2070 }
2066 } 2071 }
2067 } 2072 }
2068 } 2073 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698