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

Unified Diff: dart/frog/leg/ssa/nodes.dart

Issue 9355031: Improve List implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and resolved conflicts Created 8 years, 10 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 | « dart/frog/leg/ssa/codegen.dart ('k') | dart/frog/tests/leg/src/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/ssa/nodes.dart
diff --git a/dart/frog/leg/ssa/nodes.dart b/dart/frog/leg/ssa/nodes.dart
index 0d7b4f125531863bd126db9ae7059388157619cf..122282a98d39f5efeda9f0205ee12c4c543fee62 100644
--- a/dart/frog/leg/ssa/nodes.dart
+++ b/dart/frog/leg/ssa/nodes.dart
@@ -1091,7 +1091,8 @@ class HInvokeInterceptor extends HInvokeStatic {
accept(HVisitor visitor) => visitor.visitInvokeInterceptor(this);
HType computeType() {
- if (name == const SourceString('length') && inputs[1].isStringOrArray()) {
+ if (getter && name == const SourceString('length')
+ && inputs[1].isStringOrArray()) {
builtinJsName = 'length';
return HType.INTEGER;
} else if (name == const SourceString('add') && inputs[1].isArray()) {
« no previous file with comments | « dart/frog/leg/ssa/codegen.dart ('k') | dart/frog/tests/leg/src/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698