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

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

Issue 2009603002: MIPS: Fix 'Collect call counts for constructor calls, too.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | src/mips64/code-stubs-mips64.cc » ('j') | 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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 __ Branch(&done_initialize_count); 1979 __ Branch(&done_initialize_count);
1980 1980
1981 __ bind(&not_array_function); 1981 __ bind(&not_array_function);
1982 CreateWeakCellStub weak_cell_stub(masm->isolate()); 1982 CreateWeakCellStub weak_cell_stub(masm->isolate());
1983 CallStubInRecordCallTarget(masm, &weak_cell_stub); 1983 CallStubInRecordCallTarget(masm, &weak_cell_stub);
1984 1984
1985 __ bind(&done_initialize_count); 1985 __ bind(&done_initialize_count);
1986 // Initialize the call counter. 1986 // Initialize the call counter.
1987 __ Lsa(at, a2, a3, kPointerSizeLog2 - kSmiTagSize); 1987 __ Lsa(at, a2, a3, kPointerSizeLog2 - kSmiTagSize);
1988 __ li(t0, Operand(Smi::FromInt(1))); 1988 __ li(t0, Operand(Smi::FromInt(1)));
1989 __ Branch(USE_DELAY_SLOT, &done);
1989 __ sw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize)); 1990 __ sw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize));
1990 __ b(&done);
1991 1991
1992 __ bind(&done_increment_count); 1992 __ bind(&done_increment_count);
1993 1993
1994 // Increment the call count for monomorphic function calls. 1994 // Increment the call count for monomorphic function calls.
1995 __ Lsa(at, a2, a3, kPointerSizeLog2 - kSmiTagSize); 1995 __ Lsa(at, a2, a3, kPointerSizeLog2 - kSmiTagSize);
1996 __ lw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize)); 1996 __ lw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize));
1997 __ Addu(t0, t0, Operand(Smi::FromInt(1))); 1997 __ Addu(t0, t0, Operand(Smi::FromInt(1)));
1998 __ sw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize)); 1998 __ sw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize));
1999 1999
2000 __ bind(&done); 2000 __ bind(&done);
(...skipping 3630 matching lines...) Expand 10 before | Expand all | Expand 10 after
5631 kStackUnwindSpace, kInvalidStackOffset, 5631 kStackUnwindSpace, kInvalidStackOffset,
5632 return_value_operand, NULL); 5632 return_value_operand, NULL);
5633 } 5633 }
5634 5634
5635 #undef __ 5635 #undef __
5636 5636
5637 } // namespace internal 5637 } // namespace internal
5638 } // namespace v8 5638 } // namespace v8
5639 5639
5640 #endif // V8_TARGET_ARCH_MIPS 5640 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698