| 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
| 6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1679 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 | 1682 |
| 1683 void CodeGenerator::AssemblePrologue() { | 1683 void CodeGenerator::AssemblePrologue() { |
| 1684 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1684 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 1685 if (descriptor->IsCFunctionCall()) { | 1685 if (descriptor->IsCFunctionCall()) { |
| 1686 __ Push(ra, fp); | 1686 __ Push(ra, fp); |
| 1687 __ mov(fp, sp); | 1687 __ mov(fp, sp); |
| 1688 } else if (descriptor->IsJSFunctionCall()) { | 1688 } else if (descriptor->IsJSFunctionCall()) { |
| 1689 CompilationInfo* info = this->info(); | 1689 __ Prologue(this->info()->GeneratePreagedPrologue()); |
| 1690 __ Prologue(info->IsCodePreAgingActive()); | |
| 1691 } else if (frame()->needs_frame()) { | 1690 } else if (frame()->needs_frame()) { |
| 1692 __ StubPrologue(); | 1691 __ StubPrologue(); |
| 1693 } else { | 1692 } else { |
| 1694 frame()->SetElidedFrameSizeInSlots(0); | 1693 frame()->SetElidedFrameSizeInSlots(0); |
| 1695 } | 1694 } |
| 1696 frame_access_state()->SetFrameAccessToDefault(); | 1695 frame_access_state()->SetFrameAccessToDefault(); |
| 1697 | 1696 |
| 1698 int stack_shrink_slots = frame()->GetSpillSlotCount(); | 1697 int stack_shrink_slots = frame()->GetSpillSlotCount(); |
| 1699 if (info()->is_osr()) { | 1698 if (info()->is_osr()) { |
| 1700 // TurboFan OSR-compiled functions cannot be entered directly. | 1699 // TurboFan OSR-compiled functions cannot be entered directly. |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1982 padding_size -= v8::internal::Assembler::kInstrSize; | 1981 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1983 } | 1982 } |
| 1984 } | 1983 } |
| 1985 } | 1984 } |
| 1986 | 1985 |
| 1987 #undef __ | 1986 #undef __ |
| 1988 | 1987 |
| 1989 } // namespace compiler | 1988 } // namespace compiler |
| 1990 } // namespace internal | 1989 } // namespace internal |
| 1991 } // namespace v8 | 1990 } // namespace v8 |
| OLD | NEW |