| 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/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 FrameScope frame_scope(masm_, StackFrame::MANUAL); | 128 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| 129 int prologue_offset = masm_->pc_offset(); | 129 int prologue_offset = masm_->pc_offset(); |
| 130 | 130 |
| 131 if (prologue_offset) { | 131 if (prologue_offset) { |
| 132 // Prologue logic requires it's starting address in ip and the | 132 // Prologue logic requires it's starting address in ip and the |
| 133 // corresponding offset from the function entry. | 133 // corresponding offset from the function entry. |
| 134 prologue_offset += Instruction::kInstrSize; | 134 prologue_offset += Instruction::kInstrSize; |
| 135 __ addi(ip, ip, Operand(prologue_offset)); | 135 __ addi(ip, ip, Operand(prologue_offset)); |
| 136 } | 136 } |
| 137 info->set_prologue_offset(prologue_offset); | 137 info->set_prologue_offset(prologue_offset); |
| 138 __ Prologue(info->IsCodePreAgingActive(), prologue_offset); | 138 __ Prologue(info->GeneratePreagedPrologue(), prologue_offset); |
| 139 | 139 |
| 140 { | 140 { |
| 141 Comment cmnt(masm_, "[ Allocate locals"); | 141 Comment cmnt(masm_, "[ Allocate locals"); |
| 142 int locals_count = info->scope()->num_stack_slots(); | 142 int locals_count = info->scope()->num_stack_slots(); |
| 143 // Generators allocate locals, if any, in context slots. | 143 // Generators allocate locals, if any, in context slots. |
| 144 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); | 144 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); |
| 145 if (locals_count > 0) { | 145 if (locals_count > 0) { |
| 146 if (locals_count >= 128) { | 146 if (locals_count >= 128) { |
| 147 Label ok; | 147 Label ok; |
| 148 __ Add(ip, sp, -(locals_count * kPointerSize), r0); | 148 __ Add(ip, sp, -(locals_count * kPointerSize), r0); |
| (...skipping 4711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4860 return ON_STACK_REPLACEMENT; | 4860 return ON_STACK_REPLACEMENT; |
| 4861 } | 4861 } |
| 4862 | 4862 |
| 4863 DCHECK(interrupt_address == | 4863 DCHECK(interrupt_address == |
| 4864 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4864 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4865 return OSR_AFTER_STACK_CHECK; | 4865 return OSR_AFTER_STACK_CHECK; |
| 4866 } | 4866 } |
| 4867 } // namespace internal | 4867 } // namespace internal |
| 4868 } // namespace v8 | 4868 } // namespace v8 |
| 4869 #endif // V8_TARGET_ARCH_PPC | 4869 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |