| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index 2a734728a28e0df8f5ed32d12557ecf1c620837e..78bc5bb7089322c6e93a574b137ceb53d0f72e08 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -1557,6 +1557,21 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) {
|
| result = AssignEnvironment(result);
|
| }
|
| return result;
|
| + } else if (instr->representation().IsExternal()) {
|
| + ASSERT(instr->left()->representation().IsExternal());
|
| + ASSERT(instr->right()->representation().IsInteger32());
|
| + ASSERT(!instr->CheckFlag(HValue::kCanOverflow));
|
| + bool use_lea = LAddI::UseLea(instr);
|
| + LOperand* left = UseRegisterAtStart(instr->left());
|
| + HValue* right_candidate = instr->right();
|
| + LOperand* right = use_lea
|
| + ? UseRegisterOrConstantAtStart(right_candidate)
|
| + : UseOrConstantAtStart(right_candidate);
|
| + LAddI* add = new(zone()) LAddI(left, right);
|
| + LInstruction* result = use_lea
|
| + ? DefineAsRegister(add)
|
| + : DefineSameAsFirst(add);
|
| + return result;
|
| } else if (instr->representation().IsDouble()) {
|
| return DoArithmeticD(Token::ADD, instr);
|
| } else {
|
| @@ -1601,19 +1616,6 @@ LInstruction* LChunkBuilder::DoPower(HPower* instr) {
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoRandom(HRandom* instr) {
|
| - ASSERT(instr->representation().IsDouble());
|
| - ASSERT(instr->global_object()->representation().IsTagged());
|
| - LOperand* global_object = UseTempRegister(instr->global_object());
|
| - LOperand* scratch = TempRegister();
|
| - LOperand* scratch2 = TempRegister();
|
| - LOperand* scratch3 = TempRegister();
|
| - LRandom* result = new(zone()) LRandom(
|
| - global_object, scratch, scratch2, scratch3);
|
| - return DefineFixedDouble(result, xmm1);
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
|
| ASSERT(instr->left()->representation().IsTagged());
|
| ASSERT(instr->right()->representation().IsTagged());
|
|
|