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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart

Issue 1421003004: Add CoreClasses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. 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
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/elements/elements.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.ir_builder_task; 5 library dart2js.ir_builder_task;
6 6
7 import '../closure.dart' as closurelib; 7 import '../closure.dart' as closurelib;
8 import '../closure.dart' hide ClosureScope; 8 import '../closure.dart' hide ClosureScope;
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show 10 import '../common/names.dart' show
(...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 bool requiresRuntimeTypesFor(ClassElement cls) { 2489 bool requiresRuntimeTypesFor(ClassElement cls) {
2490 return cls.typeVariables.isNotEmpty && _backend.classNeedsRti(cls); 2490 return cls.typeVariables.isNotEmpty && _backend.classNeedsRti(cls);
2491 } 2491 }
2492 2492
2493 FunctionElement get stringifyFunction { 2493 FunctionElement get stringifyFunction {
2494 return _backend.helpers.stringInterpolationHelper; 2494 return _backend.helpers.stringInterpolationHelper;
2495 } 2495 }
2496 2496
2497 FunctionElement get throwTypeErrorHelper => _backend.helpers.throwTypeError; 2497 FunctionElement get throwTypeErrorHelper => _backend.helpers.throwTypeError;
2498 2498
2499 ClassElement get nullClass => _compiler.nullClass; 2499 ClassElement get nullClass => _compiler.coreClasses.nullClass;
2500 2500
2501 DartType unaliasType(DartType type) => type.unaliased; 2501 DartType unaliasType(DartType type) => type.unaliased;
2502 2502
2503 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { 2503 TypeMask getTypeMaskForForeign(NativeBehavior behavior) {
2504 if (behavior == null) { 2504 if (behavior == null) {
2505 return _backend.dynamicType; 2505 return _backend.dynamicType;
2506 } 2506 }
2507 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); 2507 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler);
2508 } 2508 }
2509 2509
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
3579 if (compiler.backend.isForeign(function)) { 3579 if (compiler.backend.isForeign(function)) {
3580 return handleForeignCode(node, function, argumentList, callStructure); 3580 return handleForeignCode(node, function, argumentList, callStructure);
3581 } else { 3581 } else {
3582 return irBuilder.buildStaticFunctionInvocation(function, callStructure, 3582 return irBuilder.buildStaticFunctionInvocation(function, callStructure,
3583 translateStaticArguments(argumentList, function, callStructure), 3583 translateStaticArguments(argumentList, function, callStructure),
3584 sourceInformation: 3584 sourceInformation:
3585 sourceInformationBuilder.buildCall(node, node.selector)); 3585 sourceInformationBuilder.buildCall(node, node.selector));
3586 } 3586 }
3587 } 3587 }
3588 } 3588 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698