| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
| (...skipping 2753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2764 | 2764 |
| 2765 | 2765 |
| 2766 void CallICStub::HandleArrayCase(MacroAssembler* masm, Label* miss) { | 2766 void CallICStub::HandleArrayCase(MacroAssembler* masm, Label* miss) { |
| 2767 // a1 - function | 2767 // a1 - function |
| 2768 // a3 - slot id | 2768 // a3 - slot id |
| 2769 // a2 - vector | 2769 // a2 - vector |
| 2770 // a4 - allocation site (loaded from vector[slot]) | 2770 // a4 - allocation site (loaded from vector[slot]) |
| 2771 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, at); | 2771 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, at); |
| 2772 __ Branch(miss, ne, a1, Operand(at)); | 2772 __ Branch(miss, ne, a1, Operand(at)); |
| 2773 | 2773 |
| 2774 __ li(a0, Operand(arg_count())); |
| 2775 |
| 2774 // Increment the call count for monomorphic function calls. | 2776 // Increment the call count for monomorphic function calls. |
| 2775 __ dsrl(t0, a3, 32 - kPointerSizeLog2); | 2777 __ dsrl(t0, a3, 32 - kPointerSizeLog2); |
| 2776 __ Daddu(a3, a2, Operand(t0)); | 2778 __ Daddu(a3, a2, Operand(t0)); |
| 2777 __ ld(t0, FieldMemOperand(a3, FixedArray::kHeaderSize + kPointerSize)); | 2779 __ ld(t0, FieldMemOperand(a3, FixedArray::kHeaderSize + kPointerSize)); |
| 2778 __ Daddu(t0, t0, Operand(Smi::FromInt(CallICNexus::kCallCountIncrement))); | 2780 __ Daddu(t0, t0, Operand(Smi::FromInt(CallICNexus::kCallCountIncrement))); |
| 2779 __ sd(t0, FieldMemOperand(a3, FixedArray::kHeaderSize + kPointerSize)); | 2781 __ sd(t0, FieldMemOperand(a3, FixedArray::kHeaderSize + kPointerSize)); |
| 2780 | 2782 |
| 2781 __ mov(a2, a4); | 2783 __ mov(a2, a4); |
| 2782 __ mov(a3, a1); | 2784 __ mov(a3, a1); |
| 2783 ArrayConstructorStub stub(masm->isolate(), arg_count()); | 2785 ArrayConstructorStub stub(masm->isolate(), arg_count()); |
| (...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5771 MemOperand(fp, 6 * kPointerSize), NULL); | 5773 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5772 } | 5774 } |
| 5773 | 5775 |
| 5774 | 5776 |
| 5775 #undef __ | 5777 #undef __ |
| 5776 | 5778 |
| 5777 } // namespace internal | 5779 } // namespace internal |
| 5778 } // namespace v8 | 5780 } // namespace v8 |
| 5779 | 5781 |
| 5780 #endif // V8_TARGET_ARCH_MIPS64 | 5782 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |