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

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

Issue 1244473002: dart2js: Fix check for support of reflection. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 part of js_backend; 5 part of js_backend;
6 6
7 const VERBOSE_OPTIMIZER_HINTS = false; 7 const VERBOSE_OPTIMIZER_HINTS = false;
8 8
9 class JavaScriptItemCompilationContext extends ItemCompilationContext { 9 class JavaScriptItemCompilationContext extends ItemCompilationContext {
10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>();
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 new Uri(scheme: 'dart', path: '_js_embedded_names'); 235 new Uri(scheme: 'dart', path: '_js_embedded_names');
236 static final Uri DART_ISOLATE_HELPER = 236 static final Uri DART_ISOLATE_HELPER =
237 new Uri(scheme: 'dart', path: '_isolate_helper'); 237 new Uri(scheme: 'dart', path: '_isolate_helper');
238 static final Uri DART_HTML = 238 static final Uri DART_HTML =
239 new Uri(scheme: 'dart', path: 'html'); 239 new Uri(scheme: 'dart', path: 'html');
240 240
241 static const String INVOKE_ON = '_getCachedInvocation'; 241 static const String INVOKE_ON = '_getCachedInvocation';
242 static const String START_ROOT_ISOLATE = 'startRootIsolate'; 242 static const String START_ROOT_ISOLATE = 'startRootIsolate';
243 243
244 244
245 bool get supportsReflection => emitter.emitter.supportsReflection;
246
245 String get patchVersion => USE_LAZY_EMITTER ? 'lazy' : 'full'; 247 String get patchVersion => USE_LAZY_EMITTER ? 'lazy' : 'full';
246 248
247 final Annotations annotations; 249 final Annotations annotations;
248 250
249 /// Reference to the internal library to lookup functions to always inline. 251 /// Reference to the internal library to lookup functions to always inline.
250 LibraryElement internalLibrary; 252 LibraryElement internalLibrary;
251 253
252 254
253 /// Set of classes that need to be considered for reflection although not 255 /// Set of classes that need to be considered for reflection although not
254 /// otherwise visible during resolution. 256 /// otherwise visible during resolution.
(...skipping 2754 matching lines...) Expand 10 before | Expand all | Expand 10 after
3009 } 3011 }
3010 } 3012 }
3011 3013
3012 /// Records that [constant] is used by the element behind [registry]. 3014 /// Records that [constant] is used by the element behind [registry].
3013 class Dependency { 3015 class Dependency {
3014 final ConstantValue constant; 3016 final ConstantValue constant;
3015 final Element annotatedElement; 3017 final Element annotatedElement;
3016 3018
3017 const Dependency(this.constant, this.annotatedElement); 3019 const Dependency(this.constant, this.annotatedElement);
3018 } 3020 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698