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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart

Issue 22833005: Allow infering of return types on runtime helpers. It's only arugments the inferrer does not see. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 26182)
+++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
@@ -981,9 +981,6 @@
*/
bool recordReturnType(Element analyzedElement, TypeMask returnType) {
if (isNativeElement(analyzedElement)) return false;
- if (!compiler.backend.canBeUsedForGlobalOptimizations(analyzedElement)) {
- return false;
- }
assert(analyzedElement.implementation == analyzedElement);
TypeMask existing = typeInformationOf(analyzedElement).returnType;
if (optimismState == OPTIMISTIC

Powered by Google App Engine
This is Rietveld 408576698