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

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

Issue 1576063003: dart2js cps: Translate identity placeholders to refinement nodes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Replace array-refinements in finalize pass Created 4 years, 11 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 closure; 7 import '../closure.dart' as closure;
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/names.dart' show 9 import '../common/names.dart' show
10 Names, 10 Names,
(...skipping 3590 matching lines...) Expand 10 before | Expand all | Expand 10 after
3601 3601
3602 DartType unaliasType(DartType type) => type.unaliased; 3602 DartType unaliasType(DartType type) => type.unaliased;
3603 3603
3604 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { 3604 TypeMask getTypeMaskForForeign(NativeBehavior behavior) {
3605 if (behavior == null) { 3605 if (behavior == null) {
3606 return _backend.dynamicType; 3606 return _backend.dynamicType;
3607 } 3607 }
3608 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); 3608 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler);
3609 } 3609 }
3610 3610
3611 bool isArrayType(TypeMask type) {
3612 return type.satisfies(_backend.helpers.jsArrayClass, _compiler.world);
3613 }
3614
3611 FieldElement locateSingleField(Selector selector, TypeMask type) { 3615 FieldElement locateSingleField(Selector selector, TypeMask type) {
3612 return _compiler.world.locateSingleField(selector, type); 3616 return _compiler.world.locateSingleField(selector, type);
3613 } 3617 }
3614 3618
3615 Element get closureConverter { 3619 Element get closureConverter {
3616 return _backend.helpers.closureConverter; 3620 return _backend.helpers.closureConverter;
3617 } 3621 }
3618 3622
3619 void addNativeMethod(FunctionElement function) { 3623 void addNativeMethod(FunctionElement function) {
3620 _backend.emitter.nativeEmitter.nativeMethods.add(function); 3624 _backend.emitter.nativeEmitter.nativeMethods.add(function);
3621 } 3625 }
3622 } 3626 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698