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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map_impl.dart

Issue 2907383002: Don't tag fromEnvironment constructors as native (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/native/native.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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.kernel.element_map; 5 library dart2js.kernel.element_map;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 import 'package:kernel/clone.dart'; 8 import 'package:kernel/clone.dart';
9 import 'package:kernel/type_algebra.dart'; 9 import 'package:kernel/type_algebra.dart';
10 10
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 @override 1532 @override
1533 native.NativeBehavior computeNativeMethodBehavior(KFunction function, 1533 native.NativeBehavior computeNativeMethodBehavior(KFunction function,
1534 {bool isJsInterop}) { 1534 {bool isJsInterop}) {
1535 ir.Member node = elementMap._memberList[function.memberIndex].node; 1535 ir.Member node = elementMap._memberList[function.memberIndex].node;
1536 return elementMap.getNativeBehaviorForMethod(node, 1536 return elementMap.getNativeBehaviorForMethod(node,
1537 isJsInterop: isJsInterop); 1537 isJsInterop: isJsInterop);
1538 } 1538 }
1539 1539
1540 @override 1540 @override
1541 bool isNativeMethod(KFunction function) { 1541 bool isNativeMethod(KFunction function) {
1542 if (!native.maybeEnableNative(function.library.canonicalUri)) return false;
1542 ir.Member node = elementMap._memberList[function.memberIndex].node; 1543 ir.Member node = elementMap._memberList[function.memberIndex].node;
1543 return node.isExternal && 1544 return node.isExternal &&
1544 !elementMap.isForeignLibrary(node.enclosingLibrary); 1545 !elementMap.isForeignLibrary(node.enclosingLibrary);
1545 } 1546 }
1546 1547
1547 @override 1548 @override
1548 bool isJsInteropMember(MemberEntity element) { 1549 bool isJsInteropMember(MemberEntity element) {
1549 // TODO(johnniwinther): Compute this. 1550 // TODO(johnniwinther): Compute this.
1550 return false; 1551 return false;
1551 } 1552 }
1552 } 1553 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/native/native.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698