| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index 5b502a80c91b1ca40226c17d08e2d0786897fe1f..a9e25db9c1d2d3fa2499b41ae9fce942bfc347e8 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -1989,9 +1989,10 @@ LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
|
| - LOperand* string = UseRegister(instr->string());
|
| + LOperand* string = UseTempRegister(instr->string());
|
| LOperand* index = UseRegisterOrConstant(instr->index());
|
| - LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
|
| + LOperand* temp = TempRegister();
|
| + LStringCharCodeAt* result = new LStringCharCodeAt(string, index, temp);
|
| return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
|
| }
|
|
|
|
|