| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 } | 613 } |
| 614 #endif | 614 #endif |
| 615 } | 615 } |
| 616 | 616 |
| 617 DCHECK(__ StackPointer().Is(jssp)); | 617 DCHECK(__ StackPointer().Is(jssp)); |
| 618 info()->set_prologue_offset(masm_->pc_offset()); | 618 info()->set_prologue_offset(masm_->pc_offset()); |
| 619 if (NeedsEagerFrame()) { | 619 if (NeedsEagerFrame()) { |
| 620 if (info()->IsStub()) { | 620 if (info()->IsStub()) { |
| 621 __ StubPrologue(); | 621 __ StubPrologue(); |
| 622 } else { | 622 } else { |
| 623 __ Prologue(info()->IsCodePreAgingActive()); | 623 __ Prologue(info()->GeneratePreagedPrologue()); |
| 624 } | 624 } |
| 625 frame_is_built_ = true; | 625 frame_is_built_ = true; |
| 626 } | 626 } |
| 627 | 627 |
| 628 // Reserve space for the stack slots needed by the code. | 628 // Reserve space for the stack slots needed by the code. |
| 629 int slots = GetStackSlotCount(); | 629 int slots = GetStackSlotCount(); |
| 630 if (slots > 0) { | 630 if (slots > 0) { |
| 631 __ Claim(slots, kPointerSize); | 631 __ Claim(slots, kPointerSize); |
| 632 } | 632 } |
| 633 | 633 |
| (...skipping 5145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5779 Handle<ScopeInfo> scope_info = instr->scope_info(); | 5779 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 5780 __ Push(scope_info); | 5780 __ Push(scope_info); |
| 5781 __ Push(ToRegister(instr->function())); | 5781 __ Push(ToRegister(instr->function())); |
| 5782 CallRuntime(Runtime::kPushBlockContext, instr); | 5782 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5783 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5783 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5784 } | 5784 } |
| 5785 | 5785 |
| 5786 | 5786 |
| 5787 } // namespace internal | 5787 } // namespace internal |
| 5788 } // namespace v8 | 5788 } // namespace v8 |
| OLD | NEW |