Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: src/arm/assembler-arm.cc

Issue 6625084: ARM: Improved double to integer truncation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 2353
2354 void Assembler::vcvt_f32_f64(const SwVfpRegister dst, 2354 void Assembler::vcvt_f32_f64(const SwVfpRegister dst,
2355 const DwVfpRegister src, 2355 const DwVfpRegister src,
2356 VFPConversionMode mode, 2356 VFPConversionMode mode,
2357 const Condition cond) { 2357 const Condition cond) {
2358 ASSERT(CpuFeatures::IsEnabled(VFP3)); 2358 ASSERT(CpuFeatures::IsEnabled(VFP3));
2359 emit(EncodeVCVT(F32, dst.code(), F64, src.code(), mode, cond)); 2359 emit(EncodeVCVT(F32, dst.code(), F64, src.code(), mode, cond));
2360 } 2360 }
2361 2361
2362 2362
2363 void Assembler::vneg(const DwVfpRegister dst,
2364 const DwVfpRegister src,
2365 const Condition cond) {
2366 emit(cond | 0xE*B24 | 0xB*B20 | B16 | dst.code()*B12 |
2367 0x5*B9 | B8 | B6 | src.code());
2368 }
2369
2370
2363 void Assembler::vabs(const DwVfpRegister dst, 2371 void Assembler::vabs(const DwVfpRegister dst,
2364 const DwVfpRegister src, 2372 const DwVfpRegister src,
2365 const Condition cond) { 2373 const Condition cond) {
2366 emit(cond | 0xE*B24 | 0xB*B20 | dst.code()*B12 | 2374 emit(cond | 0xE*B24 | 0xB*B20 | dst.code()*B12 |
2367 0x5*B9 | B8 | 0x3*B6 | src.code()); 2375 0x5*B9 | B8 | 0x3*B6 | src.code());
2368 } 2376 }
2369 2377
2370 2378
2371 void Assembler::vadd(const DwVfpRegister dst, 2379 void Assembler::vadd(const DwVfpRegister dst,
2372 const DwVfpRegister src1, 2380 const DwVfpRegister src1,
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2747 2755
2748 // Since a constant pool was just emitted, move the check offset forward by 2756 // Since a constant pool was just emitted, move the check offset forward by
2749 // the standard interval. 2757 // the standard interval.
2750 next_buffer_check_ = pc_offset() + kCheckConstInterval; 2758 next_buffer_check_ = pc_offset() + kCheckConstInterval;
2751 } 2759 }
2752 2760
2753 2761
2754 } } // namespace v8::internal 2762 } } // namespace v8::internal
2755 2763
2756 #endif // V8_TARGET_ARCH_ARM 2764 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698