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

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
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 void JumpIfNotPowerOfTwoOrZeroAndNeg(Register reg,
Søren Thygesen Gjesse 2011/03/21 08:42:03 Please add a separate comment for this function.
Alexandre 2011/03/21 09:05:02 Done.
830 Register scratch,
831 Label* zero_and_neg,
832 Label* not_power_of_two);
829 833
830 // --------------------------------------------------------------------------- 834 // ---------------------------------------------------------------------------
831 // Smi utilities 835 // Smi utilities
832 836
833 void SmiTag(Register reg, SBit s = LeaveCC) { 837 void SmiTag(Register reg, SBit s = LeaveCC) {
834 add(reg, reg, Operand(reg), s); 838 add(reg, reg, Operand(reg), s);
835 } 839 }
836 void SmiTag(Register dst, Register src, SBit s = LeaveCC) { 840 void SmiTag(Register dst, Register src, SBit s = LeaveCC) {
837 add(dst, src, Operand(src), s); 841 add(dst, src, Operand(src), s);
838 } 842 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1044 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1041 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1045 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1042 #else 1046 #else
1043 #define ACCESS_MASM(masm) masm-> 1047 #define ACCESS_MASM(masm) masm->
1044 #endif 1048 #endif
1045 1049
1046 1050
1047 } } // namespace v8::internal 1051 } } // namespace v8::internal
1048 1052
1049 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1053 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698