OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 prologue_offset += Instruction::kInstrSize; | 131 prologue_offset += Instruction::kInstrSize; |
132 __ addi(ip, ip, Operand(prologue_offset)); | 132 __ addi(ip, ip, Operand(prologue_offset)); |
133 } | 133 } |
134 info->set_prologue_offset(prologue_offset); | 134 info->set_prologue_offset(prologue_offset); |
135 __ Prologue(info->GeneratePreagedPrologue(), ip, prologue_offset); | 135 __ Prologue(info->GeneratePreagedPrologue(), ip, prologue_offset); |
136 | 136 |
137 // Increment invocation count for the function. | 137 // Increment invocation count for the function. |
138 { | 138 { |
139 Comment cmnt(masm_, "[ Increment invocation count"); | 139 Comment cmnt(masm_, "[ Increment invocation count"); |
140 __ LoadP(r7, FieldMemOperand(r4, JSFunction::kFeedbackVectorOffset)); | 140 __ LoadP(r7, FieldMemOperand(r4, JSFunction::kFeedbackVectorOffset)); |
| 141 __ LoadP(r7, FieldMemOperand(r7, Cell::kValueOffset)); |
141 __ LoadP(r8, FieldMemOperand(r7, TypeFeedbackVector::kInvocationCountIndex * | 142 __ LoadP(r8, FieldMemOperand(r7, TypeFeedbackVector::kInvocationCountIndex * |
142 kPointerSize + | 143 kPointerSize + |
143 TypeFeedbackVector::kHeaderSize)); | 144 TypeFeedbackVector::kHeaderSize)); |
144 __ AddSmiLiteral(r8, r8, Smi::FromInt(1), r0); | 145 __ AddSmiLiteral(r8, r8, Smi::FromInt(1), r0); |
145 __ StoreP(r8, | 146 __ StoreP(r8, |
146 FieldMemOperand( | 147 FieldMemOperand( |
147 r7, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + | 148 r7, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + |
148 TypeFeedbackVector::kHeaderSize), | 149 TypeFeedbackVector::kHeaderSize), |
149 r0); | 150 r0); |
150 } | 151 } |
(...skipping 2697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2848 | 2849 |
2849 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2850 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
2850 | 2851 |
2851 DCHECK(interrupt_address == | 2852 DCHECK(interrupt_address == |
2852 isolate->builtins()->OnStackReplacement()->entry()); | 2853 isolate->builtins()->OnStackReplacement()->entry()); |
2853 return ON_STACK_REPLACEMENT; | 2854 return ON_STACK_REPLACEMENT; |
2854 } | 2855 } |
2855 } // namespace internal | 2856 } // namespace internal |
2856 } // namespace v8 | 2857 } // namespace v8 |
2857 #endif // V8_TARGET_ARCH_PPC | 2858 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |