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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 | 123 |
124 bool LCodeGen::GeneratePrologue() { | 124 bool LCodeGen::GeneratePrologue() { |
125 DCHECK(is_generating()); | 125 DCHECK(is_generating()); |
126 | 126 |
127 if (info()->IsOptimizing()) { | 127 if (info()->IsOptimizing()) { |
128 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 128 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
129 | 129 |
130 #ifdef DEBUG | |
131 if (strlen(FLAG_stop_at) > 0 && | |
132 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
133 __ stop("stop_at"); | |
134 } | |
135 #endif | |
136 | |
137 // a1: Callee's JS function. | 130 // a1: Callee's JS function. |
138 // cp: Callee's context. | 131 // cp: Callee's context. |
139 // fp: Caller's frame pointer. | 132 // fp: Caller's frame pointer. |
140 // lr: Caller's pc. | 133 // lr: Caller's pc. |
141 } | 134 } |
142 | 135 |
143 info()->set_prologue_offset(masm_->pc_offset()); | 136 info()->set_prologue_offset(masm_->pc_offset()); |
144 if (NeedsEagerFrame()) { | 137 if (NeedsEagerFrame()) { |
145 if (info()->IsStub()) { | 138 if (info()->IsStub()) { |
146 __ StubPrologue(); | 139 __ StubPrologue(); |
(...skipping 5458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5605 __ Push(at, ToRegister(instr->function())); | 5598 __ Push(at, ToRegister(instr->function())); |
5606 CallRuntime(Runtime::kPushBlockContext, instr); | 5599 CallRuntime(Runtime::kPushBlockContext, instr); |
5607 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5600 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5608 } | 5601 } |
5609 | 5602 |
5610 | 5603 |
5611 #undef __ | 5604 #undef __ |
5612 | 5605 |
5613 } // namespace internal | 5606 } // namespace internal |
5614 } // namespace v8 | 5607 } // namespace v8 |
OLD | NEW |