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

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

Issue 2608143002: Refactor BackendHelpers to make 'find' methods private. (Closed)
Patch Set: Updated cf. comments. Created 3 years, 11 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: pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart
diff --git a/pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart b/pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart
index 57487179f081d74d350f0662d6a136d2955eeebd..303bd9fc6e6215cc5c972b7a646baa3ae1f00e57 100644
--- a/pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart
+++ b/pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart
@@ -20,8 +20,10 @@ class CheckedModeHelper {
StaticUse getStaticUse(Compiler compiler) {
JavaScriptBackend backend = compiler.backend;
+ // TODO(johnniwinther): Refactor this to avoid looking up directly in the
+ // js helper library but instead access helpers directly on backend helpers.
return new StaticUse.staticInvoke(
- backend.helpers.findHelper(name), callStructure);
+ backend.helpers.jsHelperLibrary.find(name), callStructure);
}
CallStructure get callStructure => CallStructure.ONE_ARG;
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_impact.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698