OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 vmov(s15, r7); | 1321 vmov(s15, r7); |
1322 vcvt_f64_s32(d7, s15); | 1322 vcvt_f64_s32(d7, s15); |
1323 vmov(outLowReg, outHighReg, d7); | 1323 vmov(outLowReg, outHighReg, d7); |
1324 } | 1324 } |
1325 | 1325 |
1326 | 1326 |
1327 void MacroAssembler::GetLeastBitsFromSmi(Register dst, | 1327 void MacroAssembler::GetLeastBitsFromSmi(Register dst, |
1328 Register src, | 1328 Register src, |
1329 int num_least_bits) { | 1329 int num_least_bits) { |
1330 if (CpuFeatures::IsSupported(ARMv7)) { | 1330 if (CpuFeatures::IsSupported(ARMv7)) { |
1331 ubfx(dst, src, Operand(kSmiTagSize), Operand(num_least_bits - 1)); | 1331 ubfx(dst, src, kSmiTagSize, num_least_bits); |
1332 } else { | 1332 } else { |
1333 mov(dst, Operand(src, ASR, kSmiTagSize)); | 1333 mov(dst, Operand(src, ASR, kSmiTagSize)); |
1334 and_(dst, dst, Operand((1 << num_least_bits) - 1)); | 1334 and_(dst, dst, Operand((1 << num_least_bits) - 1)); |
1335 } | 1335 } |
1336 } | 1336 } |
1337 | 1337 |
1338 | 1338 |
1339 void MacroAssembler::CallRuntime(Runtime::Function* f, int num_arguments) { | 1339 void MacroAssembler::CallRuntime(Runtime::Function* f, int num_arguments) { |
1340 // All parameters are on the stack. r0 has the return value after call. | 1340 // All parameters are on the stack. r0 has the return value after call. |
1341 | 1341 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 | 1767 |
1768 void CodePatcher::Emit(Address addr) { | 1768 void CodePatcher::Emit(Address addr) { |
1769 masm()->emit(reinterpret_cast<Instr>(addr)); | 1769 masm()->emit(reinterpret_cast<Instr>(addr)); |
1770 } | 1770 } |
1771 #endif // ENABLE_DEBUGGER_SUPPORT | 1771 #endif // ENABLE_DEBUGGER_SUPPORT |
1772 | 1772 |
1773 | 1773 |
1774 } } // namespace v8::internal | 1774 } } // namespace v8::internal |
1775 | 1775 |
1776 #endif // V8_TARGET_ARCH_ARM | 1776 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |