| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 131 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| 132 int prologue_offset = masm_->pc_offset(); | 132 int prologue_offset = masm_->pc_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(r6, FieldMemOperand(r3, JSFunction::kFeedbackVectorOffset)); | 140 __ LoadP(r6, FieldMemOperand(r3, JSFunction::kFeedbackVectorOffset)); |
| 141 __ LoadP(r6, FieldMemOperand(r6, Cell::kValueOffset)); |
| 141 __ LoadP(r1, FieldMemOperand(r6, TypeFeedbackVector::kInvocationCountIndex * | 142 __ LoadP(r1, FieldMemOperand(r6, TypeFeedbackVector::kInvocationCountIndex * |
| 142 kPointerSize + | 143 kPointerSize + |
| 143 TypeFeedbackVector::kHeaderSize)); | 144 TypeFeedbackVector::kHeaderSize)); |
| 144 __ AddSmiLiteral(r1, r1, Smi::FromInt(1), r0); | 145 __ AddSmiLiteral(r1, r1, Smi::FromInt(1), r0); |
| 145 __ StoreP(r1, | 146 __ StoreP(r1, |
| 146 FieldMemOperand( | 147 FieldMemOperand( |
| 147 r6, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + | 148 r6, TypeFeedbackVector::kInvocationCountIndex * kPointerSize + |
| 148 TypeFeedbackVector::kHeaderSize)); | 149 TypeFeedbackVector::kHeaderSize)); |
| 149 } | 150 } |
| 150 | 151 |
| (...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 USE(kOSRBranchInstruction); | 2786 USE(kOSRBranchInstruction); |
| 2786 DCHECK(kOSRBranchInstruction == br_instr); | 2787 DCHECK(kOSRBranchInstruction == br_instr); |
| 2787 | 2788 |
| 2788 DCHECK(interrupt_address == | 2789 DCHECK(interrupt_address == |
| 2789 isolate->builtins()->OnStackReplacement()->entry()); | 2790 isolate->builtins()->OnStackReplacement()->entry()); |
| 2790 return ON_STACK_REPLACEMENT; | 2791 return ON_STACK_REPLACEMENT; |
| 2791 } | 2792 } |
| 2792 } // namespace internal | 2793 } // namespace internal |
| 2793 } // namespace v8 | 2794 } // namespace v8 |
| 2794 #endif // V8_TARGET_ARCH_S390 | 2795 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |