Chromium Code Reviews| Index: runtime/vm/dart_entry.cc |
| =================================================================== |
| --- runtime/vm/dart_entry.cc (revision 15741) |
| +++ runtime/vm/dart_entry.cc (working copy) |
| @@ -119,8 +119,8 @@ |
| } |
| -ArgumentsDescriptor::ArgumentsDescriptor(RawObject* array) |
| - : array_(Array::CheckedHandle(array)) { |
| +ArgumentsDescriptor::ArgumentsDescriptor(const Array& array) |
| + : array_(array) { |
| } |
| @@ -134,10 +134,12 @@ |
| } |
| -RawObject* ArgumentsDescriptor::NameAt(intptr_t index) const { |
| - return array_.At(kFirstNamedEntryIndex + |
| - (index * kNamedEntrySize) + |
| - kNameOffset); |
| +RawString* ArgumentsDescriptor::NameAt(intptr_t index) const { |
| + String& result = String::Handle(); |
| + result ^= array_.At(kFirstNamedEntryIndex + |
| + (index * kNamedEntrySize) + |
| + kNameOffset); |
|
siva
2012/12/05 19:18:48
const String& result = String::CheckedHandle(array
srdjan
2012/12/05 19:30:07
Discussed, ignoring.
|
| + return result.raw(); |
| } |