OLD | NEW |
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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // the frame (that is done below). | 126 // the frame (that is done below). |
127 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 127 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
128 | 128 |
129 info->set_prologue_offset(masm_->pc_offset()); | 129 info->set_prologue_offset(masm_->pc_offset()); |
130 __ Prologue(info->GeneratePreagedPrologue()); | 130 __ Prologue(info->GeneratePreagedPrologue()); |
131 | 131 |
132 // Increment invocation count for the function. | 132 // Increment invocation count for the function. |
133 { | 133 { |
134 Comment cmnt(masm_, "[ Increment invocation count"); | 134 Comment cmnt(masm_, "[ Increment invocation count"); |
135 __ ldr(r2, FieldMemOperand(r1, JSFunction::kFeedbackVectorOffset)); | 135 __ ldr(r2, FieldMemOperand(r1, JSFunction::kFeedbackVectorOffset)); |
| 136 __ ldr(r2, FieldMemOperand(r2, Cell::kValueOffset)); |
136 __ ldr(r9, FieldMemOperand(r2, TypeFeedbackVector::kInvocationCountIndex * | 137 __ ldr(r9, FieldMemOperand(r2, TypeFeedbackVector::kInvocationCountIndex * |
137 kPointerSize + | 138 kPointerSize + |
138 TypeFeedbackVector::kHeaderSize)); | 139 TypeFeedbackVector::kHeaderSize)); |
139 __ add(r9, r9, Operand(Smi::FromInt(1))); | 140 __ add(r9, r9, Operand(Smi::FromInt(1))); |
140 __ str(r9, FieldMemOperand(r2, TypeFeedbackVector::kInvocationCountIndex * | 141 __ str(r9, FieldMemOperand(r2, TypeFeedbackVector::kInvocationCountIndex * |
141 kPointerSize + | 142 kPointerSize + |
142 TypeFeedbackVector::kHeaderSize)); | 143 TypeFeedbackVector::kHeaderSize)); |
143 } | 144 } |
144 | 145 |
145 { Comment cmnt(masm_, "[ Allocate locals"); | 146 { Comment cmnt(masm_, "[ Allocate locals"); |
(...skipping 2763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2909 DCHECK(interrupt_address == | 2910 DCHECK(interrupt_address == |
2910 isolate->builtins()->OnStackReplacement()->entry()); | 2911 isolate->builtins()->OnStackReplacement()->entry()); |
2911 return ON_STACK_REPLACEMENT; | 2912 return ON_STACK_REPLACEMENT; |
2912 } | 2913 } |
2913 | 2914 |
2914 | 2915 |
2915 } // namespace internal | 2916 } // namespace internal |
2916 } // namespace v8 | 2917 } // namespace v8 |
2917 | 2918 |
2918 #endif // V8_TARGET_ARCH_ARM | 2919 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |