| 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 count++; | 602 count++; |
| 603 } | 603 } |
| 604 } | 604 } |
| 605 | 605 |
| 606 | 606 |
| 607 bool LCodeGen::GeneratePrologue() { | 607 bool LCodeGen::GeneratePrologue() { |
| 608 DCHECK(is_generating()); | 608 DCHECK(is_generating()); |
| 609 | 609 |
| 610 if (info()->IsOptimizing()) { | 610 if (info()->IsOptimizing()) { |
| 611 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 611 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 612 | |
| 613 #ifdef DEBUG | |
| 614 if (strlen(FLAG_stop_at) > 0 && | |
| 615 info()->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
| 616 __ Debug("stop-at", __LINE__, BREAK); | |
| 617 } | |
| 618 #endif | |
| 619 } | 612 } |
| 620 | 613 |
| 621 DCHECK(__ StackPointer().Is(jssp)); | 614 DCHECK(__ StackPointer().Is(jssp)); |
| 622 info()->set_prologue_offset(masm_->pc_offset()); | 615 info()->set_prologue_offset(masm_->pc_offset()); |
| 623 if (NeedsEagerFrame()) { | 616 if (NeedsEagerFrame()) { |
| 624 if (info()->IsStub()) { | 617 if (info()->IsStub()) { |
| 625 __ StubPrologue(); | 618 __ StubPrologue(); |
| 626 } else { | 619 } else { |
| 627 __ Prologue(info()->GeneratePreagedPrologue()); | 620 __ Prologue(info()->GeneratePreagedPrologue()); |
| 628 } | 621 } |
| (...skipping 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5770 Handle<ScopeInfo> scope_info = instr->scope_info(); | 5763 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 5771 __ Push(scope_info); | 5764 __ Push(scope_info); |
| 5772 __ Push(ToRegister(instr->function())); | 5765 __ Push(ToRegister(instr->function())); |
| 5773 CallRuntime(Runtime::kPushBlockContext, instr); | 5766 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5774 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5767 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5775 } | 5768 } |
| 5776 | 5769 |
| 5777 | 5770 |
| 5778 } // namespace internal | 5771 } // namespace internal |
| 5779 } // namespace v8 | 5772 } // namespace v8 |
| OLD | NEW |