OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // NOTICE: Destroys the dst register even if unsuccessful! | 203 // NOTICE: Destroys the dst register even if unsuccessful! |
204 void Integer32ToSmi(Register dst, Register src, Label* on_overflow); | 204 void Integer32ToSmi(Register dst, Register src, Label* on_overflow); |
205 | 205 |
206 // Adds constant to src and tags the result as a smi. | 206 // Adds constant to src and tags the result as a smi. |
207 // Result must be a valid smi. | 207 // Result must be a valid smi. |
208 void Integer64PlusConstantToSmi(Register dst, Register src, int constant); | 208 void Integer64PlusConstantToSmi(Register dst, Register src, int constant); |
209 | 209 |
210 // Convert smi to 32-bit integer. I.e., not sign extended into | 210 // Convert smi to 32-bit integer. I.e., not sign extended into |
211 // high 32 bits of destination. | 211 // high 32 bits of destination. |
212 void SmiToInteger32(Register dst, Register src); | 212 void SmiToInteger32(Register dst, Register src); |
| 213 void SmiToInteger32(Register dst, const Operand& src); |
213 | 214 |
214 // Convert smi to 64-bit integer (sign extended if necessary). | 215 // Convert smi to 64-bit integer (sign extended if necessary). |
215 void SmiToInteger64(Register dst, Register src); | 216 void SmiToInteger64(Register dst, Register src); |
216 | 217 |
217 // Multiply a positive smi's integer value by a power of two. | 218 // Multiply a positive smi's integer value by a power of two. |
218 // Provides result as 64-bit integer value. | 219 // Provides result as 64-bit integer value. |
219 void PositiveSmiTimesPowerOfTwoToInteger64(Register dst, | 220 void PositiveSmiTimesPowerOfTwoToInteger64(Register dst, |
220 Register src, | 221 Register src, |
221 int power); | 222 int power); |
222 | 223 |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 } \ | 877 } \ |
877 masm-> | 878 masm-> |
878 #else | 879 #else |
879 #define ACCESS_MASM(masm) masm-> | 880 #define ACCESS_MASM(masm) masm-> |
880 #endif | 881 #endif |
881 | 882 |
882 | 883 |
883 } } // namespace v8::internal | 884 } } // namespace v8::internal |
884 | 885 |
885 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 886 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |