| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 // Reserve space for the stack slots needed by the code. | 130 // Reserve space for the stack slots needed by the code. |
| 131 int slots = StackSlotCount(); | 131 int slots = StackSlotCount(); |
| 132 if (slots > 0) { | 132 if (slots > 0) { |
| 133 if (FLAG_debug_code) { | 133 if (FLAG_debug_code) { |
| 134 __ mov(r0, Operand(slots)); | 134 __ mov(r0, Operand(slots)); |
| 135 __ mov(r2, Operand(kSlotsZapValue)); | 135 __ mov(r2, Operand(kSlotsZapValue)); |
| 136 Label loop; | 136 Label loop; |
| 137 __ bind(&loop); | 137 __ bind(&loop); |
| 138 __ push(r2); | 138 __ push(r2); |
| 139 __ sub(r0, r0, Operand(1)); | 139 __ sub(r0, r0, Operand(1), SetCC); |
| 140 __ b(ne, &loop); | 140 __ b(ne, &loop); |
| 141 } else { | 141 } else { |
| 142 __ sub(sp, sp, Operand(slots * kPointerSize)); | 142 __ sub(sp, sp, Operand(slots * kPointerSize)); |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 | 145 |
| 146 // Trace the call. | 146 // Trace the call. |
| 147 if (FLAG_trace) { | 147 if (FLAG_trace) { |
| 148 __ CallRuntime(Runtime::kTraceEnter, 0); | 148 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 149 } | 149 } |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2137 | 2137 |
| 2138 | 2138 |
| 2139 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2139 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
| 2140 Abort("DoOsrEntry unimplemented."); | 2140 Abort("DoOsrEntry unimplemented."); |
| 2141 } | 2141 } |
| 2142 | 2142 |
| 2143 | 2143 |
| 2144 #undef __ | 2144 #undef __ |
| 2145 | 2145 |
| 2146 } } // namespace v8::internal | 2146 } } // namespace v8::internal |
| OLD | NEW |