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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart

Issue 562123002: Support parameter access in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 part of type_graph_inferrer; 5 part of type_graph_inferrer;
6 6
7 // A set of selectors we know do not escape the elements inside the 7 // A set of selectors we know do not escape the elements inside the
8 // list. 8 // list.
9 Set<String> doesNotEscapeListSet = new Set<String>.from( 9 Set<String> doesNotEscapeListSet = new Set<String>.from(
10 const <String>[ 10 const <String>[
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 bailout('Returned from a closure'); 361 bailout('Returned from a closure');
362 } 362 }
363 if (!inferrer.compiler.backend 363 if (!inferrer.compiler.backend
364 .canBeUsedForGlobalOptimizations(info.element)) { 364 .canBeUsedForGlobalOptimizations(info.element)) {
365 bailout('Escape to code that has special backend treatment'); 365 bailout('Escape to code that has special backend treatment');
366 } 366 }
367 addNewEscapeInformation(info); 367 addNewEscapeInformation(info);
368 } 368 }
369 369
370 void visitParameterTypeInformation(ParameterTypeInformation info) { 370 void visitParameterTypeInformation(ParameterTypeInformation info) {
371 Element element = info.element; 371 ParameterElement element = info.element;
372 if (inferrer.isNativeElement(element.enclosingElement)) { 372 if (inferrer.isNativeElement(element.functionDeclaration)) {
373 bailout('Passed to a native method'); 373 bailout('Passed to a native method');
374 } 374 }
375 if (!inferrer.compiler.backend 375 if (!inferrer.compiler.backend
376 .canBeUsedForGlobalOptimizations(info.element)) { 376 .canBeUsedForGlobalOptimizations(info.element)) {
377 bailout('Escape to code that has special backend treatment'); 377 bailout('Escape to code that has special backend treatment');
378 } 378 }
379 if (isParameterOfListAddingMethod(info.element) || 379 if (isParameterOfListAddingMethod(info.element) ||
380 isParameterOfMapAddingMethod(info.element)) { 380 isParameterOfMapAddingMethod(info.element)) {
381 // These elements are being handled in 381 // These elements are being handled in
382 // [visitDynamicCallSiteTypeInformation]. 382 // [visitDynamicCallSiteTypeInformation].
383 return; 383 return;
384 } 384 }
385 addNewEscapeInformation(info); 385 addNewEscapeInformation(info);
386 } 386 }
387 } 387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698