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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2836733002: dart2js: patch file support cleanup (Closed)
Patch Set: remove js_array change Created 3 years, 8 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 js_backend.backend; 5 library js_backend.backend;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/backend_api.dart' 8 import '../common/backend_api.dart'
9 show ForeignResolver, NativeRegistry, ImpactTransformer; 9 show ForeignResolver, NativeRegistry, ImpactTransformer;
10 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem; 10 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 class JavaScriptBackend { 303 class JavaScriptBackend {
304 static const String JS = 'JS'; 304 static const String JS = 'JS';
305 static const String JS_BUILTIN = 'JS_BUILTIN'; 305 static const String JS_BUILTIN = 'JS_BUILTIN';
306 static const String JS_EMBEDDED_GLOBAL = 'JS_EMBEDDED_GLOBAL'; 306 static const String JS_EMBEDDED_GLOBAL = 'JS_EMBEDDED_GLOBAL';
307 static const String JS_INTERCEPTOR_CONSTANT = 'JS_INTERCEPTOR_CONSTANT'; 307 static const String JS_INTERCEPTOR_CONSTANT = 'JS_INTERCEPTOR_CONSTANT';
308 308
309 final Compiler compiler; 309 final Compiler compiler;
310 310
311 String get patchVersion => emitter.patchVersion;
312
313 /// Returns true if the backend supports reflection. 311 /// Returns true if the backend supports reflection.
314 bool get supportsReflection => emitter.supportsReflection; 312 bool get supportsReflection => emitter.supportsReflection;
315 313
316 final Annotations annotations; 314 final Annotations annotations;
317 315
318 /// Set of classes that need to be considered for reflection although not 316 /// Set of classes that need to be considered for reflection although not
319 /// otherwise visible during resolution. 317 /// otherwise visible during resolution.
320 Iterable<ClassEntity> get classesRequiredForReflection { 318 Iterable<ClassEntity> get classesRequiredForReflection {
321 // TODO(herhut): Clean this up when classes needed for rti are tracked. 319 // TODO(herhut): Clean this up when classes needed for rti are tracked.
322 return [commonElements.closureClass, commonElements.jsIndexableClass]; 320 return [commonElements.closureClass, commonElements.jsIndexableClass];
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 1462
1465 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1463 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1466 return !selector.isGetter; 1464 return !selector.isGetter;
1467 } 1465 }
1468 1466
1469 /// Returns `true` if [member] is called from a subclass via `super`. 1467 /// Returns `true` if [member] is called from a subclass via `super`.
1470 bool isAliasedSuperMember(MemberEntity member) { 1468 bool isAliasedSuperMember(MemberEntity member) {
1471 return _aliasedSuperMembers.contains(member); 1469 return _aliasedSuperMembers.contains(member);
1472 } 1470 }
1473 } 1471 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_emitter/code_emitter_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698