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

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: Removed redundant null-check 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/type_test_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698