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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
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 3896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3907 if (FLAG_debug_code) { | 3907 if (FLAG_debug_code) { |
3908 __ And(at, a2, Operand(kSmiTagMask)); | 3908 __ And(at, a2, Operand(kSmiTagMask)); |
3909 __ Assert(ne, kExpectedAllocationSite, at, Operand(zero_reg)); | 3909 __ Assert(ne, kExpectedAllocationSite, at, Operand(zero_reg)); |
3910 __ ld(a4, FieldMemOperand(a2, HeapObject::kMapOffset)); | 3910 __ ld(a4, FieldMemOperand(a2, HeapObject::kMapOffset)); |
3911 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); | 3911 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); |
3912 __ Assert(eq, kExpectedAllocationSite, a4, Operand(at)); | 3912 __ Assert(eq, kExpectedAllocationSite, a4, Operand(at)); |
3913 } | 3913 } |
3914 | 3914 |
3915 // Tail call into the stub that handles binary operations with allocation | 3915 // Tail call into the stub that handles binary operations with allocation |
3916 // sites. | 3916 // sites. |
3917 BinaryOpWithAllocationSiteStub stub(isolate(), state_); | 3917 BinaryOpWithAllocationSiteStub stub(isolate(), state()); |
3918 __ TailCallStub(&stub); | 3918 __ TailCallStub(&stub); |
3919 } | 3919 } |
3920 | 3920 |
3921 | 3921 |
3922 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { | 3922 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { |
3923 DCHECK(state_ == CompareIC::SMI); | 3923 DCHECK(state_ == CompareIC::SMI); |
3924 Label miss; | 3924 Label miss; |
3925 __ Or(a2, a1, a0); | 3925 __ Or(a2, a1, a0); |
3926 __ JumpIfNotSmi(a2, &miss); | 3926 __ JumpIfNotSmi(a2, &miss); |
3927 | 3927 |
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5337 MemOperand(fp, 6 * kPointerSize), | 5337 MemOperand(fp, 6 * kPointerSize), |
5338 NULL); | 5338 NULL); |
5339 } | 5339 } |
5340 | 5340 |
5341 | 5341 |
5342 #undef __ | 5342 #undef __ |
5343 | 5343 |
5344 } } // namespace v8::internal | 5344 } } // namespace v8::internal |
5345 | 5345 |
5346 #endif // V8_TARGET_ARCH_MIPS64 | 5346 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |