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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. Created 3 years, 10 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 | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // MANUAL indicates that the scope shouldn't actually generate code to set up 134 // MANUAL indicates that the scope shouldn't actually generate code to set up
135 // the frame (that is done below). 135 // the frame (that is done below).
136 FrameScope frame_scope(masm_, StackFrame::MANUAL); 136 FrameScope frame_scope(masm_, StackFrame::MANUAL);
137 info->set_prologue_offset(masm_->pc_offset()); 137 info->set_prologue_offset(masm_->pc_offset());
138 __ Prologue(info->GeneratePreagedPrologue()); 138 __ Prologue(info->GeneratePreagedPrologue());
139 139
140 // Increment invocation count for the function. 140 // Increment invocation count for the function.
141 { 141 {
142 Comment cmnt(masm_, "[ Increment invocation count"); 142 Comment cmnt(masm_, "[ Increment invocation count");
143 __ ld(a0, FieldMemOperand(a1, JSFunction::kFeedbackVectorOffset)); 143 __ ld(a0, FieldMemOperand(a1, JSFunction::kFeedbackVectorOffset));
144 __ ld(a0, FieldMemOperand(a0, Cell::kValueOffset));
144 __ ld(a4, FieldMemOperand( 145 __ ld(a4, FieldMemOperand(
145 a0, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + 146 a0, TypeFeedbackVector::kInvocationCountIndex * kPointerSize +
146 TypeFeedbackVector::kHeaderSize)); 147 TypeFeedbackVector::kHeaderSize));
147 __ Daddu(a4, a4, Operand(Smi::FromInt(1))); 148 __ Daddu(a4, a4, Operand(Smi::FromInt(1)));
148 __ sd(a4, FieldMemOperand( 149 __ sd(a4, FieldMemOperand(
149 a0, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + 150 a0, TypeFeedbackVector::kInvocationCountIndex * kPointerSize +
150 TypeFeedbackVector::kHeaderSize)); 151 TypeFeedbackVector::kHeaderSize));
151 } 152 }
152 153
153 { Comment cmnt(masm_, "[ Allocate locals"); 154 { Comment cmnt(masm_, "[ Allocate locals");
(...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after
2878 reinterpret_cast<uint64_t>( 2879 reinterpret_cast<uint64_t>(
2879 isolate->builtins()->OnStackReplacement()->entry())); 2880 isolate->builtins()->OnStackReplacement()->entry()));
2880 return ON_STACK_REPLACEMENT; 2881 return ON_STACK_REPLACEMENT;
2881 } 2882 }
2882 2883
2883 2884
2884 } // namespace internal 2885 } // namespace internal
2885 } // namespace v8 2886 } // namespace v8
2886 2887
2887 #endif // V8_TARGET_ARCH_MIPS64 2888 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698