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

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

Issue 12316096: ARM: Make DoStoreKeyedFixedDoubleArray faster; don't allow conditional Vmov (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 const double src2, 804 const double src2,
805 const Register fpscr_flags, 805 const Register fpscr_flags,
806 const Condition cond) { 806 const Condition cond) {
807 // Compare and load FPSCR. 807 // Compare and load FPSCR.
808 vcmp(src1, src2, cond); 808 vcmp(src1, src2, cond);
809 vmrs(fpscr_flags, cond); 809 vmrs(fpscr_flags, cond);
810 } 810 }
811 811
812 void MacroAssembler::Vmov(const DwVfpRegister dst, 812 void MacroAssembler::Vmov(const DwVfpRegister dst,
813 const double imm, 813 const double imm,
814 const Register scratch, 814 const Register scratch) {
815 const Condition cond) {
816 ASSERT(CpuFeatures::IsEnabled(VFP2)); 815 ASSERT(CpuFeatures::IsEnabled(VFP2));
817 static const DoubleRepresentation minus_zero(-0.0); 816 static const DoubleRepresentation minus_zero(-0.0);
818 static const DoubleRepresentation zero(0.0); 817 static const DoubleRepresentation zero(0.0);
819 DoubleRepresentation value(imm); 818 DoubleRepresentation value(imm);
820 // Handle special values first. 819 // Handle special values first.
821 if (value.bits == zero.bits) { 820 if (value.bits == zero.bits) {
822 vmov(dst, kDoubleRegZero, cond); 821 vmov(dst, kDoubleRegZero);
823 } else if (value.bits == minus_zero.bits) { 822 } else if (value.bits == minus_zero.bits) {
824 vneg(dst, kDoubleRegZero, cond); 823 vneg(dst, kDoubleRegZero);
825 } else { 824 } else {
826 vmov(dst, imm, scratch, cond); 825 vmov(dst, imm, scratch);
827 } 826 }
828 } 827 }
829 828
830 829
831 void MacroAssembler::EnterFrame(StackFrame::Type type) { 830 void MacroAssembler::EnterFrame(StackFrame::Type type) {
832 // r0-r3: preserved 831 // r0-r3: preserved
833 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); 832 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit());
834 mov(ip, Operand(Smi::FromInt(type))); 833 mov(ip, Operand(Smi::FromInt(type)));
835 push(ip); 834 push(ip);
836 mov(ip, Operand(CodeObject())); 835 mov(ip, Operand(CodeObject()));
(...skipping 3153 matching lines...) Expand 10 before | Expand all | Expand 10 after
3990 void CodePatcher::EmitCondition(Condition cond) { 3989 void CodePatcher::EmitCondition(Condition cond) {
3991 Instr instr = Assembler::instr_at(masm_.pc_); 3990 Instr instr = Assembler::instr_at(masm_.pc_);
3992 instr = (instr & ~kCondMask) | cond; 3991 instr = (instr & ~kCondMask) | cond;
3993 masm_.emit(instr); 3992 masm_.emit(instr);
3994 } 3993 }
3995 3994
3996 3995
3997 } } // namespace v8::internal 3996 } } // namespace v8::internal
3998 3997
3999 #endif // V8_TARGET_ARCH_ARM 3998 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698