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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.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/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index 91fba41c95751f17442f62afe22ed3db3fc389f0..5ad05301029989ad3bdd32d77613bf92d55d4ec5 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -892,12 +892,19 @@ abstract class HInstruction implements Spannable {
bool isNumber() => instructionType.isNumber();
bool isNumberOrNull() => instructionType.isNumberOrNull();
bool isString() => instructionType.isString();
- bool isIndexablePrimitive() => instructionType.isIndexablePrimitive();
bool isPrimitive() => instructionType.isPrimitive();
bool canBeNull() => instructionType.canBeNull();
bool canBePrimitive(Compiler compiler) =>
instructionType.canBePrimitive(compiler);
+ bool isIndexable(Compiler compiler) =>
+ instructionType.isIndexable(compiler);
+ bool isMutableIndexable(Compiler compiler) =>
+ instructionType.isMutableIndexable(compiler);
+
+ // TODO(kasperl): Get rid of this one.
+ bool isIndexablePrimitive() => instructionType.isIndexablePrimitive();
+
/**
* Type of the unstruction.
*/

Powered by Google App Engine
This is Rietveld 408576698