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

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

Issue 1229923005: dart2js: support tear-offs in the startup emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix bad assert. Created 5 years, 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/code_emitter_task.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 String get patchVersion => emitter.patchVersion;
246
245 bool get supportsReflection => emitter.emitter.supportsReflection; 247 bool get supportsReflection => emitter.emitter.supportsReflection;
246 248
247 String get patchVersion => USE_LAZY_EMITTER ? 'lazy' : 'full';
248
249 final Annotations annotations; 249 final Annotations annotations;
250 250
251 /// Reference to the internal library to lookup functions to always inline. 251 /// Reference to the internal library to lookup functions to always inline.
252 LibraryElement internalLibrary; 252 LibraryElement internalLibrary;
253 253
254 254
255 /// 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
256 /// otherwise visible during resolution. 256 /// otherwise visible during resolution.
257 Iterable<ClassElement> get classesRequiredForReflection { 257 Iterable<ClassElement> get classesRequiredForReflection {
258 // TODO(herhut): Clean this up when classes needed for rti are tracked. 258 // TODO(herhut): Clean this up when classes needed for rti are tracked.
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after
3011 } 3011 }
3012 } 3012 }
3013 3013
3014 /// Records that [constant] is used by the element behind [registry]. 3014 /// Records that [constant] is used by the element behind [registry].
3015 class Dependency { 3015 class Dependency {
3016 final ConstantValue constant; 3016 final ConstantValue constant;
3017 final Element annotatedElement; 3017 final Element annotatedElement;
3018 3018
3019 const Dependency(this.constant, this.annotatedElement); 3019 const Dependency(this.constant, this.annotatedElement);
3020 } 3020 }
OLDNEW
« no previous file with comments | « no previous file | 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