| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index d4c17ab4708a03ab49de4ff34fe5ede8f4c24c8d..921b5aa933625703838bcfc9caf8cd52065cb2d4 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -1653,6 +1653,21 @@ LInstruction* LChunkBuilder::DoAdd(HAdd* instr) {
|
| return result;
|
| } else if (instr->representation().IsDouble()) {
|
| return DoArithmeticD(Token::ADD, instr);
|
| + } 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 {
|
| return DoArithmeticT(Token::ADD, instr);
|
| }
|
| @@ -1695,19 +1710,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().IsSmiOrTagged());
|
| ASSERT(instr->right()->representation().IsSmiOrTagged());
|
|
|