| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 2ddeb27148000680f0b3f2e7c7c4de79f5782503..defae1c1629692337e26bde6ad268637f9fa7f33 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -2036,16 +2036,6 @@ void LCodeGen::DoArithmeticD(LArithmeticD* instr) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoNegateNoSSE2D(LNegateNoSSE2D* instr) {
|
| - __ push(Immediate(-1));
|
| - __ fild_s(Operand(esp, 0));
|
| - __ add(esp, Immediate(kPointerSize));
|
| - __ fmulp();
|
| - CurrentInstructionReturnsX87Result();
|
| -}
|
| -
|
| -
|
| -
|
| void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
|
| ASSERT(ToRegister(instr->context()).is(esi));
|
| ASSERT(ToRegister(instr->left()).is(edx));
|
| @@ -2068,12 +2058,12 @@ int LCodeGen::GetNextEmittedBlock() const {
|
|
|
| template<class InstrType>
|
| void LCodeGen::EmitBranch(InstrType instr, Condition cc) {
|
| - int left_block = instr->TrueDestination(chunk_);
|
| int right_block = instr->FalseDestination(chunk_);
|
| + int left_block = instr->TrueDestination(chunk_);
|
|
|
| int next_block = GetNextEmittedBlock();
|
|
|
| - if (right_block == left_block || cc == no_condition) {
|
| + if (right_block == left_block) {
|
| EmitGoto(left_block);
|
| } else if (left_block == next_block) {
|
| __ j(NegateCondition(cc), chunk_->GetAssemblyLabel(right_block));
|
| @@ -2086,25 +2076,6 @@ void LCodeGen::EmitBranch(InstrType instr, Condition cc) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoIsNumberAndBranch(LIsNumberAndBranch* instr) {
|
| - Representation r = instr->hydrogen()->value()->representation();
|
| - if (r.IsSmiOrInteger32() || r.IsDouble()) {
|
| - EmitBranch(instr, no_condition);
|
| - } else {
|
| - ASSERT(r.IsTagged());
|
| - Register reg = ToRegister(instr->value());
|
| - HType type = instr->hydrogen()->value()->type();
|
| - if (type.IsTaggedNumber()) {
|
| - EmitBranch(instr, no_condition);
|
| - }
|
| - __ JumpIfSmi(reg, instr->TrueLabel(chunk_));
|
| - __ cmp(FieldOperand(reg, HeapObject::kMapOffset),
|
| - factory()->heap_number_map());
|
| - EmitBranch(instr, equal);
|
| - }
|
| -}
|
| -
|
| -
|
| void LCodeGen::DoBranch(LBranch* instr) {
|
| Representation r = instr->hydrogen()->value()->representation();
|
| if (r.IsSmiOrInteger32()) {
|
|
|