Chromium Code Reviews| Index: src/a64/lithium-a64.cc |
| diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc |
| index 0d9b44c47c613d3c00a358319c0b1104e1c05d00..179269eb06ab67f896602014713842a4e4a840b1 100644 |
| --- a/src/a64/lithium-a64.cc |
| +++ b/src/a64/lithium-a64.cc |
| @@ -1248,6 +1248,15 @@ LInstruction* LChunkBuilder::DoCompareIDAndBranch(HCompareIDAndBranch* instr) { |
| } |
| +LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
| + ASSERT(instr->representation().IsDouble()); |
| + ASSERT(instr->global_object()->representation().IsTagged()); |
| + LOperand* global_object = UseFixed(instr->global_object(), x0); |
| + LRandom* result = new(zone()) LRandom(global_object); |
| + return MarkAsCall(DefineFixedDouble(result, d7), instr); |
|
Rodolph Perfetta
2014/01/23 15:02:14
Use d0 to be consistent with other uses.
|
| +} |
| + |
| + |
| LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| ASSERT(instr->left()->representation().IsTagged()); |
| ASSERT(instr->right()->representation().IsTagged()); |
| @@ -1873,11 +1882,6 @@ LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
| } |
| -LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
| - UNIMPLEMENTED_INSTRUCTION(); |
| -} |
| - |
| - |
| LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, x0), instr); |
| } |