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

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

Issue 141593005: A64: Implement Smi support in MathAbs (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/a64/lithium-codegen-a64.cc ('k') | src/a64/macro-assembler-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 inline void SmiUntagToDouble(FPRegister dst, 746 inline void SmiUntagToDouble(FPRegister dst,
747 Register src, 747 Register src,
748 UntagMode mode = kNotSpeculativeUntag); 748 UntagMode mode = kNotSpeculativeUntag);
749 inline void SmiUntagToFloat(FPRegister dst, 749 inline void SmiUntagToFloat(FPRegister dst,
750 Register src, 750 Register src,
751 UntagMode mode = kNotSpeculativeUntag); 751 UntagMode mode = kNotSpeculativeUntag);
752 752
753 // Compute the absolute value of 'smi' and leave the result in 'smi' 753 // Compute the absolute value of 'smi' and leave the result in 'smi'
754 // register. If 'smi' is the most negative SMI, the absolute value cannot 754 // register. If 'smi' is the most negative SMI, the absolute value cannot
755 // be represented as a SMI and a jump to 'slow' is done. 755 // be represented as a SMI and a jump to 'slow' is done.
756 void SmiAbs(Register smi, Register scratch, Label *slow); 756 void SmiAbs(const Register& smi, Label* slow);
757 757
758 inline void JumpIfSmi(Register value, 758 inline void JumpIfSmi(Register value,
759 Label* smi_label, 759 Label* smi_label,
760 Label* not_smi_label = NULL); 760 Label* not_smi_label = NULL);
761 inline void JumpIfNotSmi(Register value, Label* not_smi_label); 761 inline void JumpIfNotSmi(Register value, Label* not_smi_label);
762 inline void JumpIfBothSmi(Register value1, 762 inline void JumpIfBothSmi(Register value1,
763 Register value2, 763 Register value2,
764 Label* both_smi_label, 764 Label* both_smi_label,
765 Label* not_smi_label = NULL); 765 Label* not_smi_label = NULL);
766 inline void JumpIfEitherSmi(Register value1, 766 inline void JumpIfEitherSmi(Register value1,
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2174 #error "Unsupported option" 2174 #error "Unsupported option"
2175 #define CODE_COVERAGE_STRINGIFY(x) #x 2175 #define CODE_COVERAGE_STRINGIFY(x) #x
2176 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2176 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2177 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2177 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2178 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2178 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2179 #else 2179 #else
2180 #define ACCESS_MASM(masm) masm-> 2180 #define ACCESS_MASM(masm) masm->
2181 #endif 2181 #endif
2182 2182
2183 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ 2183 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/a64/macro-assembler-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698