| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 | 122 |
| 123 bool LCodeGen::GeneratePrologue() { | 123 bool LCodeGen::GeneratePrologue() { |
| 124 DCHECK(is_generating()); | 124 DCHECK(is_generating()); |
| 125 | 125 |
| 126 if (info()->IsOptimizing()) { | 126 if (info()->IsOptimizing()) { |
| 127 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 127 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 128 | 128 |
| 129 #ifdef DEBUG | 129 #ifdef DEBUG |
| 130 if (strlen(FLAG_stop_at) > 0 && | 130 if (strlen(FLAG_stop_at) > 0 && |
| 131 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 131 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
| 132 __ stop("stop_at"); | 132 __ stop("stop_at"); |
| 133 } | 133 } |
| 134 #endif | 134 #endif |
| 135 | 135 |
| 136 // a1: Callee's JS function. | 136 // a1: Callee's JS function. |
| 137 // cp: Callee's context. | 137 // cp: Callee's context. |
| 138 // fp: Caller's frame pointer. | 138 // fp: Caller's frame pointer. |
| 139 // lr: Caller's pc. | 139 // lr: Caller's pc. |
| 140 | 140 |
| 141 // Sloppy mode functions and builtins need to replace the receiver with the | 141 // Sloppy mode functions and builtins need to replace the receiver with the |
| (...skipping 5923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6065 __ Push(at, ToRegister(instr->function())); | 6065 __ Push(at, ToRegister(instr->function())); |
| 6066 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6066 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6067 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6067 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6068 } | 6068 } |
| 6069 | 6069 |
| 6070 | 6070 |
| 6071 #undef __ | 6071 #undef __ |
| 6072 | 6072 |
| 6073 } // namespace internal | 6073 } // namespace internal |
| 6074 } // namespace v8 | 6074 } // namespace v8 |
| OLD | NEW |