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

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: Fix for sealed types Created 5 years, 8 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 7f88892402f977ce167400e29f15cf9c443c26d1..67d11d836e3c6c7bf4f63bfffcb19bbbe7f22c17 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -1866,7 +1866,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ConversionVisitor {
/// Shared code for [PrefixedIdentifier] and [PropertyAccess].
_emitGet(Expression target, SimpleIdentifier name) {
- if (rules.isDynamicTarget(target)) {
+ if (rules.isDynamicGet(target, name)) {
Jennifer Messerly 2015/04/07 19:05:49 ideally we'd only need to check one of these. Or a
vsm 2015/04/07 19:48:46 This particular one doesn't bother me. A get is a
Jennifer Messerly 2015/04/07 21:49:23 yeah, that's a good point. I just would expect tha
vsm 2015/04/07 22:40:41 I went ahead and did this and did some correspondi
return js.call(
'dart.dload(#, #)', [_visit(target), js.string(name.name, "'")]);
} else {

Powered by Google App Engine
This is Rietveld 408576698