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

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

Issue 1424923004: Add StaticUse for more precise registration of statically known element use. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 1 month 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 code_generator_dependencies; 5 library code_generator_dependencies;
6 6
7 import '../backend_helpers.dart' show 7 import '../backend_helpers.dart' show
8 BackendHelpers; 8 BackendHelpers;
9 import '../js_backend.dart'; 9 import '../js_backend.dart';
10 10
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 ClassElement get jsMutableArrayClass => _helpers.jsMutableArrayClass; 270 ClassElement get jsMutableArrayClass => _helpers.jsMutableArrayClass;
271 271
272 bool isStringClass(ClassElement classElement) => 272 bool isStringClass(ClassElement classElement) =>
273 classElement == _helpers.jsStringClass || 273 classElement == _helpers.jsStringClass ||
274 classElement == _compiler.coreClasses.stringClass; 274 classElement == _compiler.coreClasses.stringClass;
275 275
276 bool isBoolClass(ClassElement classElement) => 276 bool isBoolClass(ClassElement classElement) =>
277 classElement == _helpers.jsBoolClass || 277 classElement == _helpers.jsBoolClass ||
278 classElement == _compiler.coreClasses.boolClass; 278 classElement == _compiler.coreClasses.boolClass;
279 279
280 // TODO(sra): Should this be part of CodegenRegistry? 280 // TODO(sra,johnniwinther): Should this be part of CodegenRegistry?
281 void registerNativeBehavior(NativeBehavior nativeBehavior, node) { 281 void registerNativeBehavior(NativeBehavior nativeBehavior, node) {
282 if (nativeBehavior == null) return; 282 if (nativeBehavior == null) return;
283 _enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node); 283 _enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node);
284 } 284 }
285 285
286 ConstantValue getDefaultParameterValue(ParameterElement elem) { 286 ConstantValue getDefaultParameterValue(ParameterElement elem) {
287 return _backend.constants.getConstantValueForVariable(elem); 287 return _backend.constants.getConstantValueForVariable(elem);
288 } 288 }
289 } 289 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698