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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |