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