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

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

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add TODOs. Created 5 years, 2 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) 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/names.dart' show 9 import '../common/names.dart' show
10 Names, 10 Names,
(...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 } 2489 }
2490 2490
2491 FunctionElement get stringifyFunction { 2491 FunctionElement get stringifyFunction {
2492 return _backend.getStringInterpolationHelper(); 2492 return _backend.getStringInterpolationHelper();
2493 } 2493 }
2494 2494
2495 FunctionElement get throwTypeErrorHelper => _backend.getThrowTypeError(); 2495 FunctionElement get throwTypeErrorHelper => _backend.getThrowTypeError();
2496 2496
2497 ClassElement get nullClass => _compiler.nullClass; 2497 ClassElement get nullClass => _compiler.nullClass;
2498 2498
2499 DartType unaliasType(DartType type) => type.unalias(_compiler); 2499 DartType unaliasType(DartType type) => type.unalias(_compiler.resolution);
2500 2500
2501 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { 2501 TypeMask getTypeMaskForForeign(NativeBehavior behavior) {
2502 if (behavior == null) { 2502 if (behavior == null) {
2503 return _backend.dynamicType; 2503 return _backend.dynamicType;
2504 } 2504 }
2505 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); 2505 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler);
2506 } 2506 }
2507 2507
2508 FieldElement locateSingleField(Selector selector, TypeMask type) { 2508 FieldElement locateSingleField(Selector selector, TypeMask type) {
2509 return _compiler.world.locateSingleField(selector, type); 2509 return _compiler.world.locateSingleField(selector, type);
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
3576 if (compiler.backend.isForeign(function)) { 3576 if (compiler.backend.isForeign(function)) {
3577 return handleForeignCode(node, function, argumentList, callStructure); 3577 return handleForeignCode(node, function, argumentList, callStructure);
3578 } else { 3578 } else {
3579 return irBuilder.buildStaticFunctionInvocation(function, callStructure, 3579 return irBuilder.buildStaticFunctionInvocation(function, callStructure,
3580 translateStaticArguments(argumentList, function, callStructure), 3580 translateStaticArguments(argumentList, function, callStructure),
3581 sourceInformation: 3581 sourceInformation:
3582 sourceInformationBuilder.buildCall(node, node.selector)); 3582 sourceInformationBuilder.buildCall(node, node.selector));
3583 } 3583 }
3584 } 3584 }
3585 } 3585 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constant_system_dart.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698