| Index: vm/dart_api_impl.cc
|
| ===================================================================
|
| --- vm/dart_api_impl.cc (revision 15591)
|
| +++ vm/dart_api_impl.cc (working copy)
|
| @@ -1838,7 +1838,7 @@
|
| if (instance.IsNull()) {
|
| return Api::NewError("Object does not implement the List interface");
|
| }
|
| - String& name = String::Handle(isolate, String::New("length"));
|
| + String& name = String::Handle(isolate, Symbols::Length());
|
| name = Field::GetterName(name);
|
| const Function& function =
|
| Function::Handle(isolate, Resolver::ResolveDynamic(instance, name, 1, 0));
|
| @@ -1904,7 +1904,7 @@
|
| const Instance& instance =
|
| Instance::Handle(isolate, GetListInstance(isolate, obj));
|
| if (!instance.IsNull()) {
|
| - String& name = String::Handle(isolate, String::New("[]"));
|
| + String& name = String::Handle(isolate, Symbols::IndexToken());
|
| const Function& function =
|
| Function::Handle(isolate,
|
| Resolver::ResolveDynamic(instance, name, 2, 0));
|
| @@ -1956,7 +1956,7 @@
|
| const Instance& instance =
|
| Instance::Handle(isolate, GetListInstance(isolate, obj));
|
| if (!instance.IsNull()) {
|
| - String& name = String::Handle(isolate, String::New("[]="));
|
| + String& name = String::Handle(isolate, Symbols::AssignIndexToken());
|
| const Function& function =
|
| Function::Handle(isolate,
|
| Resolver::ResolveDynamic(instance, name, 3, 0));
|
| @@ -2038,7 +2038,7 @@
|
| const Instance& instance =
|
| Instance::Handle(isolate, GetListInstance(isolate, obj));
|
| if (!instance.IsNull()) {
|
| - String& name = String::Handle(isolate, String::New("[]"));
|
| + String& name = String::Handle(isolate, Symbols::IndexToken());
|
| const Function& function =
|
| Function::Handle(isolate,
|
| Resolver::ResolveDynamic(instance, name, 2, 0));
|
| @@ -2126,7 +2126,7 @@
|
| const Instance& instance =
|
| Instance::Handle(isolate, GetListInstance(isolate, obj));
|
| if (!instance.IsNull()) {
|
| - String& name = String::Handle(isolate, String::New("[]="));
|
| + String& name = String::Handle(isolate, Symbols::AssignIndexToken());
|
| const Function& function =
|
| Function::Handle(isolate,
|
| Resolver::ResolveDynamic(instance, name, 3, 0));
|
|
|