| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #if V8_TARGET_ARCH_MIPS |     5 #if V8_TARGET_ARCH_MIPS | 
|     6  |     6  | 
|     7 #include "src/base/bits.h" |     7 #include "src/base/bits.h" | 
|     8 #include "src/bootstrapper.h" |     8 #include "src/bootstrapper.h" | 
|     9 #include "src/code-stubs.h" |     9 #include "src/code-stubs.h" | 
|    10 #include "src/codegen.h" |    10 #include "src/codegen.h" | 
| (...skipping 3841 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3852   Label miss; |  3852   Label miss; | 
|  3853   Handle<WeakCell> cell = Map::WeakCellForMap(known_map_); |  3853   Handle<WeakCell> cell = Map::WeakCellForMap(known_map_); | 
|  3854   __ And(a2, a1, a0); |  3854   __ And(a2, a1, a0); | 
|  3855   __ JumpIfSmi(a2, &miss); |  3855   __ JumpIfSmi(a2, &miss); | 
|  3856   __ GetWeakValue(t0, cell); |  3856   __ GetWeakValue(t0, cell); | 
|  3857   __ lw(a2, FieldMemOperand(a0, HeapObject::kMapOffset)); |  3857   __ lw(a2, FieldMemOperand(a0, HeapObject::kMapOffset)); | 
|  3858   __ lw(a3, FieldMemOperand(a1, HeapObject::kMapOffset)); |  3858   __ lw(a3, FieldMemOperand(a1, HeapObject::kMapOffset)); | 
|  3859   __ Branch(&miss, ne, a2, Operand(t0)); |  3859   __ Branch(&miss, ne, a2, Operand(t0)); | 
|  3860   __ Branch(&miss, ne, a3, Operand(t0)); |  3860   __ Branch(&miss, ne, a3, Operand(t0)); | 
|  3861  |  3861  | 
|  3862   __ Ret(USE_DELAY_SLOT); |  3862   if (Token::IsEqualityOp(op())) { | 
|  3863   __ subu(v0, a0, a1); |  3863     __ Ret(USE_DELAY_SLOT); | 
 |  3864     __ subu(v0, a0, a1); | 
 |  3865   } else if (is_strong(strength())) { | 
 |  3866     __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0, 1); | 
 |  3867   } else { | 
 |  3868     if (op() == Token::LT || op() == Token::LTE) { | 
 |  3869       __ li(a2, Operand(Smi::FromInt(GREATER))); | 
 |  3870     } else { | 
 |  3871       __ li(a2, Operand(Smi::FromInt(LESS))); | 
 |  3872     } | 
 |  3873     __ Push(a1, a0, a2); | 
 |  3874     __ TailCallRuntime(Runtime::kCompare, 3, 1); | 
 |  3875   } | 
|  3864  |  3876  | 
|  3865   __ bind(&miss); |  3877   __ bind(&miss); | 
|  3866   GenerateMiss(masm); |  3878   GenerateMiss(masm); | 
|  3867 } |  3879 } | 
|  3868  |  3880  | 
|  3869  |  3881  | 
|  3870 void CompareICStub::GenerateMiss(MacroAssembler* masm) { |  3882 void CompareICStub::GenerateMiss(MacroAssembler* masm) { | 
|  3871   { |  3883   { | 
|  3872     // Call the runtime system in a fresh internal frame. |  3884     // Call the runtime system in a fresh internal frame. | 
|  3873     FrameScope scope(masm, StackFrame::INTERNAL); |  3885     FrameScope scope(masm, StackFrame::INTERNAL); | 
| (...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5736                            MemOperand(fp, 6 * kPointerSize), NULL); |  5748                            MemOperand(fp, 6 * kPointerSize), NULL); | 
|  5737 } |  5749 } | 
|  5738  |  5750  | 
|  5739  |  5751  | 
|  5740 #undef __ |  5752 #undef __ | 
|  5741  |  5753  | 
|  5742 }  // namespace internal |  5754 }  // namespace internal | 
|  5743 }  // namespace v8 |  5755 }  // namespace v8 | 
|  5744  |  5756  | 
|  5745 #endif  // V8_TARGET_ARCH_MIPS |  5757 #endif  // V8_TARGET_ARCH_MIPS | 
| OLD | NEW |