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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_helpers.dart

Issue 2392343004: Optimize out checkInt, checkNum and checkString (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend_helpers.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_helpers.dart b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
index dc5bb125993360269a9a850b666a834355a452f1..f85e9d08152583fe2364b1fbe8677dbb3e7cda94 100644
--- a/pkg/compiler/lib/src/js_backend/backend_helpers.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
@@ -457,6 +457,15 @@ class BackendHelpers {
return findHelper('throwConcurrentModificationError');
}
+ Element get checkInt => _checkInt ??= findHelper('checkInt');
+ Element _checkInt;
+
+ Element get checkNum => _checkNum ??= findHelper('checkNum');
+ Element _checkNum;
+
+ Element get checkString => _checkString ??= findHelper('checkString');
+ Element _checkString;
+
Element get stringInterpolationHelper {
return findHelper('S');
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698