| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1150   __ bind(&inner_loop_header); | 1150   __ bind(&inner_loop_header); | 
| 1151   __ cmp(r3, Operand::Zero()); | 1151   __ cmp(r3, Operand::Zero()); | 
| 1152   __ b(ne, &inner_push_loop);  // test for gt? | 1152   __ b(ne, &inner_push_loop);  // test for gt? | 
| 1153   __ add(r4, r4, Operand(kPointerSize)); | 1153   __ add(r4, r4, Operand(kPointerSize)); | 
| 1154   __ bind(&outer_loop_header); | 1154   __ bind(&outer_loop_header); | 
| 1155   __ cmp(r4, r1); | 1155   __ cmp(r4, r1); | 
| 1156   __ b(lt, &outer_push_loop); | 1156   __ b(lt, &outer_push_loop); | 
| 1157 | 1157 | 
| 1158   if (CpuFeatures::IsSupported(VFP2)) { | 1158   if (CpuFeatures::IsSupported(VFP2)) { | 
| 1159     CpuFeatures::Scope scope(VFP2); | 1159     CpuFeatures::Scope scope(VFP2); | 
| 1160     // In case of OSR, we have to restore the d registers. | 1160     // Check CPU flags for number of registers, setting the Z condition flag. | 
| 1161     if (type() == OSR) { | 1161     __ CheckFor32DRegs(ip); | 
| 1162       // Check CPU flags for number of registers, setting the Z condition flag. |  | 
| 1163       __ CheckFor32DRegs(ip); |  | 
| 1164 | 1162 | 
| 1165       __ ldr(r1, MemOperand(r0, Deoptimizer::input_offset())); | 1163     __ ldr(r1, MemOperand(r0, Deoptimizer::input_offset())); | 
| 1166       int src_offset = FrameDescription::double_registers_offset(); | 1164     int src_offset = FrameDescription::double_registers_offset(); | 
| 1167       for (int i = 0; i < DwVfpRegister::kNumRegisters; ++i) { | 1165     for (int i = 0; i < DwVfpRegister::kNumRegisters; ++i) { | 
| 1168         if (i == kDoubleRegZero.code()) continue; | 1166       if (i == kDoubleRegZero.code()) continue; | 
| 1169         if (i == kScratchDoubleReg.code()) continue; | 1167       if (i == kScratchDoubleReg.code()) continue; | 
| 1170 | 1168 | 
| 1171         const DwVfpRegister reg = DwVfpRegister::from_code(i); | 1169       const DwVfpRegister reg = DwVfpRegister::from_code(i); | 
| 1172         __ vldr(reg, r1, src_offset, i < 16 ? al : ne); | 1170       __ vldr(reg, r1, src_offset, i < 16 ? al : ne); | 
| 1173         src_offset += kDoubleSize; | 1171       src_offset += kDoubleSize; | 
| 1174       } |  | 
| 1175     } | 1172     } | 
| 1176   } | 1173   } | 
| 1177 | 1174 | 
| 1178   // Push state, pc, and continuation from the last output frame. | 1175   // Push state, pc, and continuation from the last output frame. | 
| 1179   if (type() != OSR) { | 1176   if (type() != OSR) { | 
| 1180     __ ldr(r6, MemOperand(r2, FrameDescription::state_offset())); | 1177     __ ldr(r6, MemOperand(r2, FrameDescription::state_offset())); | 
| 1181     __ push(r6); | 1178     __ push(r6); | 
| 1182   } | 1179   } | 
| 1183 | 1180 | 
| 1184   __ ldr(r6, MemOperand(r2, FrameDescription::pc_offset())); | 1181   __ ldr(r6, MemOperand(r2, FrameDescription::pc_offset())); | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1225     __ push(ip); | 1222     __ push(ip); | 
| 1226     __ b(&done); | 1223     __ b(&done); | 
| 1227     ASSERT(masm()->pc_offset() - start == table_entry_size_); | 1224     ASSERT(masm()->pc_offset() - start == table_entry_size_); | 
| 1228   } | 1225   } | 
| 1229   __ bind(&done); | 1226   __ bind(&done); | 
| 1230 } | 1227 } | 
| 1231 | 1228 | 
| 1232 #undef __ | 1229 #undef __ | 
| 1233 | 1230 | 
| 1234 } }  // namespace v8::internal | 1231 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|