Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 1324093005: MIPS64: Fix 'On a call to Array(), we patched a call ic.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698