| Index: src/a64/lithium-a64.cc
|
| diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc
|
| index 33fbca5ad04885d598b89bd679fa11030ad81bab..b56fc8db245bbce60f9984ebed73b5929c7ed2d9 100644
|
| --- a/src/a64/lithium-a64.cc
|
| +++ b/src/a64/lithium-a64.cc
|
| @@ -2005,8 +2005,15 @@ LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
|
| - Abort(kUnimplemented);
|
| - return NULL;
|
| + // TODO(all): Use UseRegisterAtStart and UseRegisterOrConstantAtStart here.
|
| + // We cannot do it now because the debug code in the implementation changes
|
| + // temp.
|
| + LOperand* string = UseRegister(instr->string());
|
| + LOperand* index = UseRegisterOrConstant(instr->index());
|
| + LOperand* temp = TempRegister();
|
| + LSeqStringGetChar* result =
|
| + new(zone()) LSeqStringGetChar(string, index, temp);
|
| + return DefineAsRegister(result);
|
| }
|
|
|
|
|
|
|