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

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

Issue 2995643002: Support jsinterop/world_test from .dill (Closed)
Patch Set: Updated cf. comments 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 the function or constructor
146 native.NativeBehavior getNativeBehaviorForMethod(ir.Procedure procedure, 146 /// [member].
147 native.NativeBehavior getNativeBehaviorForMethod(ir.Member member,
147 {bool isJsInterop}); 148 {bool isJsInterop});
148 149
149 /// Compute the kind of foreign helper function called by [node], if any. 150 /// Compute the kind of foreign helper function called by [node], if any.
150 ForeignKind getForeignKind(ir.StaticInvocation node); 151 ForeignKind getForeignKind(ir.StaticInvocation node);
151 152
152 /// Computes the [InterfaceType] referenced by a call to the 153 /// Computes the [InterfaceType] referenced by a call to the
153 /// [JS_INTERCEPTOR_CONSTANT] function, if any. 154 /// [JS_INTERCEPTOR_CONSTANT] function, if any.
154 InterfaceType getInterfaceTypeForJsInterceptorCall(ir.StaticInvocation node); 155 InterfaceType getInterfaceTypeForJsInterceptorCall(ir.StaticInvocation node);
155 156
156 /// Returns the [Local] corresponding to the [node]. The node must be either 157 /// 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); 446 uri = Uri.parse(node.location.file);
446 break; 447 break;
447 } 448 }
448 node = node.parent; 449 node = node.parent;
449 } 450 }
450 if (uri != null) { 451 if (uri != null) {
451 return new SourceSpan(uri, offset, offset + 1); 452 return new SourceSpan(uri, offset, offset + 1);
452 } 453 }
453 return null; 454 return null;
454 } 455 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/native_data.dart ('k') | pkg/compiler/lib/src/kernel/element_map_mixins.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698