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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart

Issue 13940015: Allow using native JS []= on typed data lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart b/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart
index 3eb366892bce7694e68afaf106949c00fc7e7c6d..74e40bfc0f003ddef0fad3d6bd98c53605f25968 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart
@@ -99,7 +99,7 @@ class IndexAssignSpecializer extends InvokeDynamicSpecializer {
HInstruction tryConvertToBuiltin(HInvokeDynamic instruction,
Compiler compiler) {
- if (instruction.inputs[1].isMutableArray()) {
+ if (instruction.inputs[1].isMutableIndexable(compiler)) {
return new HIndexAssign(instruction.inputs[1],
instruction.inputs[2],
instruction.inputs[3],
@@ -129,7 +129,7 @@ class IndexSpecializer extends InvokeDynamicSpecializer {
HInstruction tryConvertToBuiltin(HInvokeDynamic instruction,
Compiler compiler) {
- if (instruction.inputs[1].isIndexablePrimitive()) {
+ if (instruction.inputs[1].isIndexable(compiler)) {
return new HIndex(
instruction.inputs[1], instruction.inputs[2], instruction.selector);
}

Powered by Google App Engine
This is Rietveld 408576698