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

Unified Diff: lib/src/codegen/js_codegen.dart

Issue 1055923002: Don't call dinvoke on Object methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: modify test Created 5 years, 9 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: lib/src/codegen/js_codegen.dart
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
index d1cd2a15ac8f67b9e600fa1083e731704f33118a..b2fa4b4155142af88cc3233888a9776d14c89e0f 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -1733,7 +1733,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ConversionVisitor {
/// Shared code for [PrefixedIdentifier] and [PropertyAccess].
_visitGet(Expression target, SimpleIdentifier name) {
- if (rules.isDynamicTarget(target)) {
+ if (rules.isDynamicGet(target, name.name)) {
return js.call(
'dart.dload(#, #)', [_visit(target), js.string(name.name, "'")]);
} else {

Powered by Google App Engine
This is Rietveld 408576698