OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // code ageing support: | 130 // code ageing support: |
131 // Push(lr, fp, cp, x1); | 131 // Push(lr, fp, cp, x1); |
132 // Add(fp, jssp, 2 * kPointerSize); | 132 // Add(fp, jssp, 2 * kPointerSize); |
133 info->set_prologue_offset(masm_->pc_offset()); | 133 info->set_prologue_offset(masm_->pc_offset()); |
134 __ Prologue(info->GeneratePreagedPrologue()); | 134 __ Prologue(info->GeneratePreagedPrologue()); |
135 | 135 |
136 // Increment invocation count for the function. | 136 // Increment invocation count for the function. |
137 { | 137 { |
138 Comment cmnt(masm_, "[ Increment invocation count"); | 138 Comment cmnt(masm_, "[ Increment invocation count"); |
139 __ Ldr(x11, FieldMemOperand(x1, JSFunction::kFeedbackVectorOffset)); | 139 __ Ldr(x11, FieldMemOperand(x1, JSFunction::kFeedbackVectorOffset)); |
| 140 __ Ldr(x11, FieldMemOperand(x11, Cell::kValueOffset)); |
140 __ Ldr(x10, FieldMemOperand(x11, TypeFeedbackVector::kInvocationCountIndex * | 141 __ Ldr(x10, FieldMemOperand(x11, TypeFeedbackVector::kInvocationCountIndex * |
141 kPointerSize + | 142 kPointerSize + |
142 TypeFeedbackVector::kHeaderSize)); | 143 TypeFeedbackVector::kHeaderSize)); |
143 __ Add(x10, x10, Operand(Smi::FromInt(1))); | 144 __ Add(x10, x10, Operand(Smi::FromInt(1))); |
144 __ Str(x10, FieldMemOperand(x11, TypeFeedbackVector::kInvocationCountIndex * | 145 __ Str(x10, FieldMemOperand(x11, TypeFeedbackVector::kInvocationCountIndex * |
145 kPointerSize + | 146 kPointerSize + |
146 TypeFeedbackVector::kHeaderSize)); | 147 TypeFeedbackVector::kHeaderSize)); |
147 } | 148 } |
148 | 149 |
149 // Reserve space on the stack for locals. | 150 // Reserve space on the stack for locals. |
(...skipping 2760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 } | 2911 } |
2911 | 2912 |
2912 return INTERRUPT; | 2913 return INTERRUPT; |
2913 } | 2914 } |
2914 | 2915 |
2915 | 2916 |
2916 } // namespace internal | 2917 } // namespace internal |
2917 } // namespace v8 | 2918 } // namespace v8 |
2918 | 2919 |
2919 #endif // V8_TARGET_ARCH_ARM64 | 2920 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |