| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3871 if (FLAG_debug_code) { | 3871 if (FLAG_debug_code) { |
| 3872 __ And(at, a2, Operand(kSmiTagMask)); | 3872 __ And(at, a2, Operand(kSmiTagMask)); |
| 3873 __ Assert(ne, kExpectedAllocationSite, at, Operand(zero_reg)); | 3873 __ Assert(ne, kExpectedAllocationSite, at, Operand(zero_reg)); |
| 3874 __ lw(t0, FieldMemOperand(a2, HeapObject::kMapOffset)); | 3874 __ lw(t0, FieldMemOperand(a2, HeapObject::kMapOffset)); |
| 3875 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); | 3875 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); |
| 3876 __ Assert(eq, kExpectedAllocationSite, t0, Operand(at)); | 3876 __ Assert(eq, kExpectedAllocationSite, t0, Operand(at)); |
| 3877 } | 3877 } |
| 3878 | 3878 |
| 3879 // Tail call into the stub that handles binary operations with allocation | 3879 // Tail call into the stub that handles binary operations with allocation |
| 3880 // sites. | 3880 // sites. |
| 3881 BinaryOpWithAllocationSiteStub stub(isolate(), state_); | 3881 BinaryOpWithAllocationSiteStub stub(isolate(), state()); |
| 3882 __ TailCallStub(&stub); | 3882 __ TailCallStub(&stub); |
| 3883 } | 3883 } |
| 3884 | 3884 |
| 3885 | 3885 |
| 3886 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { | 3886 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { |
| 3887 DCHECK(state_ == CompareIC::SMI); | 3887 DCHECK(state_ == CompareIC::SMI); |
| 3888 Label miss; | 3888 Label miss; |
| 3889 __ Or(a2, a1, a0); | 3889 __ Or(a2, a1, a0); |
| 3890 __ JumpIfNotSmi(a2, &miss); | 3890 __ JumpIfNotSmi(a2, &miss); |
| 3891 | 3891 |
| (...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5300 MemOperand(fp, 6 * kPointerSize), | 5300 MemOperand(fp, 6 * kPointerSize), |
| 5301 NULL); | 5301 NULL); |
| 5302 } | 5302 } |
| 5303 | 5303 |
| 5304 | 5304 |
| 5305 #undef __ | 5305 #undef __ |
| 5306 | 5306 |
| 5307 } } // namespace v8::internal | 5307 } } // namespace v8::internal |
| 5308 | 5308 |
| 5309 #endif // V8_TARGET_ARCH_MIPS | 5309 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |