| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // cp: Callee's context. | 138 // cp: Callee's context. |
| 139 // fp: Caller's frame pointer. | 139 // fp: Caller's frame pointer. |
| 140 // lr: Caller's pc. | 140 // lr: Caller's pc. |
| 141 } | 141 } |
| 142 | 142 |
| 143 info()->set_prologue_offset(masm_->pc_offset()); | 143 info()->set_prologue_offset(masm_->pc_offset()); |
| 144 if (NeedsEagerFrame()) { | 144 if (NeedsEagerFrame()) { |
| 145 if (info()->IsStub()) { | 145 if (info()->IsStub()) { |
| 146 __ StubPrologue(); | 146 __ StubPrologue(); |
| 147 } else { | 147 } else { |
| 148 __ Prologue(info()->IsCodePreAgingActive()); | 148 __ Prologue(info()->GeneratePreagedPrologue()); |
| 149 } | 149 } |
| 150 frame_is_built_ = true; | 150 frame_is_built_ = true; |
| 151 } | 151 } |
| 152 | 152 |
| 153 // Reserve space for the stack slots needed by the code. | 153 // Reserve space for the stack slots needed by the code. |
| 154 int slots = GetStackSlotCount(); | 154 int slots = GetStackSlotCount(); |
| 155 if (slots > 0) { | 155 if (slots > 0) { |
| 156 if (FLAG_debug_code) { | 156 if (FLAG_debug_code) { |
| 157 __ Subu(sp, sp, Operand(slots * kPointerSize)); | 157 __ Subu(sp, sp, Operand(slots * kPointerSize)); |
| 158 __ Push(a0, a1); | 158 __ Push(a0, a1); |
| (...skipping 5502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5661 __ Push(at, ToRegister(instr->function())); | 5661 __ Push(at, ToRegister(instr->function())); |
| 5662 CallRuntime(Runtime::kPushBlockContext, instr); | 5662 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5663 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5663 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5664 } | 5664 } |
| 5665 | 5665 |
| 5666 | 5666 |
| 5667 #undef __ | 5667 #undef __ |
| 5668 | 5668 |
| 5669 } // namespace internal | 5669 } // namespace internal |
| 5670 } // namespace v8 | 5670 } // namespace v8 |
| OLD | NEW |