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

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

Issue 2995643002: Support jsinterop/world_test from .dill (Closed)
Patch Set: Created 3 years, 4 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) 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 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../common_elements.dart'; 10 import '../common_elements.dart';
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 /// Returns `true` is [node] has a `@Native(...)` annotation. 135 /// Returns `true` is [node] has a `@Native(...)` annotation.
136 bool isNativeClass(ir.Class node); 136 bool isNativeClass(ir.Class node);
137 137
138 /// Computes the native behavior for reading the native [field]. 138 /// Computes the native behavior for reading the native [field].
139 native.NativeBehavior getNativeBehaviorForFieldLoad(ir.Field field, 139 native.NativeBehavior getNativeBehaviorForFieldLoad(ir.Field field,
140 {bool isJsInterop}); 140 {bool isJsInterop});
141 141
142 /// Computes the native behavior for writing to the native [field]. 142 /// Computes the native behavior for writing to the native [field].
143 native.NativeBehavior getNativeBehaviorForFieldStore(ir.Field field); 143 native.NativeBehavior getNativeBehaviorForFieldStore(ir.Field field);
144 144
145 /// Computes the native behavior for calling [procedure]. 145 /// Computes the native behavior for calling [procedure].
Siggi Cherem (dart-lang) 2017/08/09 16:11:14 should we rename [procedure] to [member]? Maybe in
Johnni Winther 2017/08/10 08:02:08 Done.
146 native.NativeBehavior getNativeBehaviorForMethod(ir.Procedure procedure, 146 native.NativeBehavior getNativeBehaviorForMethod(ir.Member procedure,
147 {bool isJsInterop}); 147 {bool isJsInterop});
148 148
149 /// Compute the kind of foreign helper function called by [node], if any. 149 /// Compute the kind of foreign helper function called by [node], if any.
150 ForeignKind getForeignKind(ir.StaticInvocation node); 150 ForeignKind getForeignKind(ir.StaticInvocation node);
151 151
152 /// Computes the [InterfaceType] referenced by a call to the 152 /// Computes the [InterfaceType] referenced by a call to the
153 /// [JS_INTERCEPTOR_CONSTANT] function, if any. 153 /// [JS_INTERCEPTOR_CONSTANT] function, if any.
154 InterfaceType getInterfaceTypeForJsInterceptorCall(ir.StaticInvocation node); 154 InterfaceType getInterfaceTypeForJsInterceptorCall(ir.StaticInvocation node);
155 155
156 /// Returns the [Local] corresponding to the [node]. The node must be either 156 /// Returns the [Local] corresponding to the [node]. The node must be either
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 uri = Uri.parse(node.location.file); 445 uri = Uri.parse(node.location.file);
446 break; 446 break;
447 } 447 }
448 node = node.parent; 448 node = node.parent;
449 } 449 }
450 if (uri != null) { 450 if (uri != null) {
451 return new SourceSpan(uri, offset, offset + 1); 451 return new SourceSpan(uri, offset, offset + 1);
452 } 452 }
453 return null; 453 return null;
454 } 454 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698