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

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

Issue 6676060: Improved modulo operation in lithium as well as bailout on -0.... (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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 // --------------------------------------------------------------------------- 819 // ---------------------------------------------------------------------------
820 // Number utilities 820 // Number utilities
821 821
822 // Check whether the value of reg is a power of two and not zero. If not 822 // Check whether the value of reg is a power of two and not zero. If not
823 // control continues at the label not_power_of_two. If reg is a power of two 823 // control continues at the label not_power_of_two. If reg is a power of two
824 // the register scratch contains the value of (reg - 1) when control falls 824 // the register scratch contains the value of (reg - 1) when control falls
825 // through. 825 // through.
826 void JumpIfNotPowerOfTwoOrZero(Register reg, 826 void JumpIfNotPowerOfTwoOrZero(Register reg,
827 Register scratch, 827 Register scratch,
828 Label* not_power_of_two_or_zero); 828 Label* not_power_of_two_or_zero);
829 // Check whether the value of reg is a power of two and not zero.
830 // Control falls through if it is, with scratch containing the mask
831 // value (reg - 1).
832 // Otherwise control jumps to the 'zero_and_neg' label if the value of reg is
833 // zero or negative, or jumps to the 'not_power_of_two' label if the value is
834 // strictly positive but not a power of two.
835 void JumpIfNotPowerOfTwoOrZeroAndNeg(Register reg,
836 Register scratch,
837 Label* zero_and_neg,
838 Label* not_power_of_two);
829 839
830 // --------------------------------------------------------------------------- 840 // ---------------------------------------------------------------------------
831 // Smi utilities 841 // Smi utilities
832 842
833 void SmiTag(Register reg, SBit s = LeaveCC) { 843 void SmiTag(Register reg, SBit s = LeaveCC) {
834 add(reg, reg, Operand(reg), s); 844 add(reg, reg, Operand(reg), s);
835 } 845 }
836 void SmiTag(Register dst, Register src, SBit s = LeaveCC) { 846 void SmiTag(Register dst, Register src, SBit s = LeaveCC) {
837 add(dst, src, Operand(src), s); 847 add(dst, src, Operand(src), s);
838 } 848 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1055 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1046 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1056 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1047 #else 1057 #else
1048 #define ACCESS_MASM(masm) masm-> 1058 #define ACCESS_MASM(masm) masm->
1049 #endif 1059 #endif
1050 1060
1051 1061
1052 } } // namespace v8::internal 1062 } } // namespace v8::internal
1053 1063
1054 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1064 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698