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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.cc

Issue 2124983004: [Turbofan] Change AlignSavedCalleeRegisterSlots to AlignFrame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 1986 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
1987 return kSuccess; 1987 return kSuccess;
1988 } 1988 }
1989 1989
1990 void CodeGenerator::FinishFrame(Frame* frame) { 1990 void CodeGenerator::FinishFrame(Frame* frame) {
1991 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1991 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1992 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); 1992 const RegList double_saves = descriptor->CalleeSavedFPRegisters();
1993 1993
1994 // Save callee-saved Double registers. 1994 // Save callee-saved Double registers.
1995 if (double_saves != 0) { 1995 if (double_saves != 0) {
1996 frame->AlignSavedCalleeRegisterSlots(); 1996 frame->AlignFrame();
1997 DCHECK(kNumCalleeSavedDoubles == 1997 DCHECK(kNumCalleeSavedDoubles ==
1998 base::bits::CountPopulation32(double_saves)); 1998 base::bits::CountPopulation32(double_saves));
1999 frame->AllocateSavedCalleeRegisterSlots(kNumCalleeSavedDoubles * 1999 frame->AllocateSavedCalleeRegisterSlots(kNumCalleeSavedDoubles *
2000 (kDoubleSize / kPointerSize)); 2000 (kDoubleSize / kPointerSize));
2001 } 2001 }
2002 // Save callee-saved registers. 2002 // Save callee-saved registers.
2003 const RegList saves = 2003 const RegList saves =
2004 FLAG_enable_embedded_constant_pool 2004 FLAG_enable_embedded_constant_pool
2005 ? descriptor->CalleeSavedRegisters() & ~kConstantPoolRegister.bit() 2005 ? descriptor->CalleeSavedRegisters() & ~kConstantPoolRegister.bit()
2006 : descriptor->CalleeSavedRegisters(); 2006 : descriptor->CalleeSavedRegisters();
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 padding_size -= v8::internal::Assembler::kInstrSize; 2344 padding_size -= v8::internal::Assembler::kInstrSize;
2345 } 2345 }
2346 } 2346 }
2347 } 2347 }
2348 2348
2349 #undef __ 2349 #undef __
2350 2350
2351 } // namespace compiler 2351 } // namespace compiler
2352 } // namespace internal 2352 } // namespace internal
2353 } // namespace v8 2353 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698