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

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

Issue 2647613004: Use entities in code_emitter_task (Closed)
Patch Set: Updated cf. comments Created 3 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
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 library dart2js.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 return jsAst.js('#.#()', 331 return jsAst.js('#.#()',
332 [namer.globalObjectFor(element), namer.staticClosureName(element)]); 332 [namer.globalObjectFor(element), namer.staticClosureName(element)]);
333 } 333 }
334 334
335 @override 335 @override
336 jsAst.PropertyAccess staticFieldAccess(FieldElement element) { 336 jsAst.PropertyAccess staticFieldAccess(FieldElement element) {
337 return globalPropertyAccess(element); 337 return globalPropertyAccess(element);
338 } 338 }
339 339
340 @override 340 @override
341 jsAst.PropertyAccess staticFunctionAccess(FunctionElement element) { 341 jsAst.PropertyAccess staticFunctionAccess(MethodElement element) {
342 return globalPropertyAccess(element); 342 return globalPropertyAccess(element);
343 } 343 }
344 344
345 @override 345 @override
346 jsAst.PropertyAccess constructorAccess(ClassElement element) { 346 jsAst.PropertyAccess constructorAccess(ClassElement element) {
347 return globalPropertyAccess(element); 347 return globalPropertyAccess(element);
348 } 348 }
349 349
350 @override 350 @override
351 jsAst.PropertyAccess prototypeAccess( 351 jsAst.PropertyAccess prototypeAccess(
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 if (cachedElements.isEmpty) return; 2179 if (cachedElements.isEmpty) return;
2180 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { 2180 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) {
2181 if (element.isInstanceMember) { 2181 if (element.isInstanceMember) {
2182 cachedClassBuilders.remove(element.enclosingClass); 2182 cachedClassBuilders.remove(element.enclosingClass);
2183 2183
2184 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2184 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2185 } 2185 }
2186 } 2186 }
2187 } 2187 }
2188 } 2188 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/code_emitter_task.dart ('k') | pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698