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 5469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5628 __ Push(at, ToRegister(instr->function())); | 5628 __ Push(at, ToRegister(instr->function())); |
5629 CallRuntime(Runtime::kPushBlockContext, instr); | 5629 CallRuntime(Runtime::kPushBlockContext, instr); |
5630 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5630 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5631 } | 5631 } |
5632 | 5632 |
5633 | 5633 |
5634 #undef __ | 5634 #undef __ |
5635 | 5635 |
5636 } // namespace internal | 5636 } // namespace internal |
5637 } // namespace v8 | 5637 } // namespace v8 |
OLD | NEW |