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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 12982008: Fixed some soft-float bugs for MIPS and ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/lithium-codegen-arm.cc ('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 4635 matching lines...) Expand 10 before | Expand all | Expand 10 after
4646 scratch0(), f2); 4646 scratch0(), f2);
4647 } 4647 }
4648 } else { 4648 } else {
4649 if (CpuFeatures::IsSupported(FPU)) { 4649 if (CpuFeatures::IsSupported(FPU)) {
4650 CpuFeatureScope scope(masm(), FPU); 4650 CpuFeatureScope scope(masm(), FPU);
4651 __ mtc1(src, dbl_scratch); 4651 __ mtc1(src, dbl_scratch);
4652 __ Cvt_d_uw(dbl_scratch, dbl_scratch, f22); 4652 __ Cvt_d_uw(dbl_scratch, dbl_scratch, f22);
4653 } else { 4653 } else {
4654 Label no_leading_zero, done; 4654 Label no_leading_zero, done;
4655 __ And(at, src, Operand(0x80000000)); 4655 __ And(at, src, Operand(0x80000000));
4656 __ Branch(&no_leading_zero, ne, at, Operand(zero_reg)); 4656 __ Branch(USE_DELAY_SLOT, &no_leading_zero, ne, at, Operand(zero_reg));
4657 4657 __ mov(sfpd_hi, src);
4658 // Integer has one leading zeros. 4658 // Integer has one leading zeros.
4659 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, t0, 1); 4659 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, t0, 1);
4660 __ Branch(&done); 4660 __ Branch(&done);
4661 4661
4662 __ bind(&no_leading_zero); 4662 __ bind(&no_leading_zero);
4663 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, t0, 0); 4663 GenerateUInt2Double(masm(), sfpd_hi, sfpd_lo, t0, 0);
4664 __ Branch(&done); 4664 __ bind(&done);
4665 } 4665 }
4666 } 4666 }
4667 4667
4668 if (FLAG_inline_new) { 4668 if (FLAG_inline_new) {
4669 __ LoadRoot(scratch0(), Heap::kHeapNumberMapRootIndex); 4669 __ LoadRoot(scratch0(), Heap::kHeapNumberMapRootIndex);
4670 __ AllocateHeapNumber(t1, a3, t0, scratch0(), &slow, DONT_TAG_RESULT); 4670 __ AllocateHeapNumber(t1, a3, t0, scratch0(), &slow, DONT_TAG_RESULT);
4671 __ Move(dst, t1); 4671 __ Move(dst, t1);
4672 __ Branch(&done); 4672 __ Branch(&done);
4673 } 4673 }
4674 4674
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
6108 __ Subu(scratch, result, scratch); 6108 __ Subu(scratch, result, scratch);
6109 __ lw(result, FieldMemOperand(scratch, 6109 __ lw(result, FieldMemOperand(scratch,
6110 FixedArray::kHeaderSize - kPointerSize)); 6110 FixedArray::kHeaderSize - kPointerSize));
6111 __ bind(&done); 6111 __ bind(&done);
6112 } 6112 }
6113 6113
6114 6114
6115 #undef __ 6115 #undef __
6116 6116
6117 } } // namespace v8::internal 6117 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698