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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 11308134: MIPS: ARM: Fast path for integer inputs to EmitVFPTruncate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on r13080 Created 8 years 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/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 // dest. If the HeapNumber does not fit into a 32bits signed integer branch 746 // dest. If the HeapNumber does not fit into a 32bits signed integer branch
747 // to not_int32 label. If FPU is available double_scratch is used but not 747 // to not_int32 label. If FPU is available double_scratch is used but not
748 // scratch2. 748 // scratch2.
749 void ConvertToInt32(Register source, 749 void ConvertToInt32(Register source,
750 Register dest, 750 Register dest,
751 Register scratch, 751 Register scratch,
752 Register scratch2, 752 Register scratch2,
753 FPURegister double_scratch, 753 FPURegister double_scratch,
754 Label *not_int32); 754 Label *not_int32);
755 755
756 // Truncates a double using a specific rounding mode. 756 // Truncates a double using a specific rounding mode, and writes the value
757 // to the result register.
757 // The except_flag will contain any exceptions caused by the instruction. 758 // The except_flag will contain any exceptions caused by the instruction.
758 // If check_inexact is kDontCheckForInexactConversion, then the inexacat 759 // If check_inexact is kDontCheckForInexactConversion, then the inexact
759 // exception is masked. 760 // exception is masked.
760 void EmitFPUTruncate(FPURoundingMode rounding_mode, 761 void EmitFPUTruncate(FPURoundingMode rounding_mode,
761 FPURegister result, 762 Register result,
762 DoubleRegister double_input, 763 DoubleRegister double_input,
763 Register scratch1, 764 Register scratch,
765 DoubleRegister double_scratch,
764 Register except_flag, 766 Register except_flag,
765 CheckForInexactConversion check_inexact 767 CheckForInexactConversion check_inexact
766 = kDontCheckForInexactConversion); 768 = kDontCheckForInexactConversion);
767 769
768 // Helper for EmitECMATruncate. 770 // Helper for EmitECMATruncate.
769 // This will truncate a floating-point value outside of the singed 32bit 771 // This will truncate a floating-point value outside of the singed 32bit
770 // integer range to a 32bit signed integer. 772 // integer range to a 32bit signed integer.
771 // Expects the double value loaded in input_high and input_low. 773 // Expects the double value loaded in input_high and input_low.
772 // Exits with the answer in 'result'. 774 // Exits with the answer in 'result'.
773 // Note that this code does not work for values in the 32bit range! 775 // Note that this code does not work for values in the 32bit range!
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1547 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1546 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1548 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1547 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1549 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1548 #else 1550 #else
1549 #define ACCESS_MASM(masm) masm-> 1551 #define ACCESS_MASM(masm) masm->
1550 #endif 1552 #endif
1551 1553
1552 } } // namespace v8::internal 1554 } } // namespace v8::internal
1553 1555
1554 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1556 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698