Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1577193003: Change the CompilationInfo::IsCodePreAgingActive() predicate to CompilationInfo::GeneratePreagingPr… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment cleanup. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 4670 matching lines...) Expand 10 before | Expand all | Expand 10 after
4819 return ON_STACK_REPLACEMENT; 4819 return ON_STACK_REPLACEMENT;
4820 } 4820 }
4821 4821
4822 DCHECK(interrupt_address == 4822 DCHECK(interrupt_address ==
4823 isolate->builtins()->OsrAfterStackCheck()->entry()); 4823 isolate->builtins()->OsrAfterStackCheck()->entry());
4824 return OSR_AFTER_STACK_CHECK; 4824 return OSR_AFTER_STACK_CHECK;
4825 } 4825 }
4826 } // namespace internal 4826 } // namespace internal
4827 } // namespace v8 4827 } // namespace v8
4828 #endif // V8_TARGET_ARCH_PPC 4828 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698