OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 Register scratch, | 231 Register scratch, |
232 Label* fail); | 232 Label* fail); |
233 | 233 |
234 // The contents of the scratch register will be overwritten. | 234 // The contents of the scratch register will be overwritten. |
235 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail); | 235 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail); |
236 | 236 |
237 // FCmp is similar to integer cmp, but requires unsigned | 237 // FCmp is similar to integer cmp, but requires unsigned |
238 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 238 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
239 void FCmp(); | 239 void FCmp(); |
240 | 240 |
| 241 void ClampUint8(Register reg); |
| 242 |
| 243 void ClampDoubleToUint8(XMMRegister input_reg, |
| 244 XMMRegister scratch_reg, |
| 245 Register result_reg); |
| 246 |
| 247 |
241 // Smi tagging support. | 248 // Smi tagging support. |
242 void SmiTag(Register reg) { | 249 void SmiTag(Register reg) { |
243 ASSERT(kSmiTag == 0); | 250 ASSERT(kSmiTag == 0); |
244 ASSERT(kSmiTagSize == 1); | 251 ASSERT(kSmiTagSize == 1); |
245 add(reg, Operand(reg)); | 252 add(reg, Operand(reg)); |
246 } | 253 } |
247 void SmiUntag(Register reg) { | 254 void SmiUntag(Register reg) { |
248 sar(reg, kSmiTagSize); | 255 sar(reg, kSmiTagSize); |
249 } | 256 } |
250 | 257 |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 } \ | 745 } \ |
739 masm-> | 746 masm-> |
740 #else | 747 #else |
741 #define ACCESS_MASM(masm) masm-> | 748 #define ACCESS_MASM(masm) masm-> |
742 #endif | 749 #endif |
743 | 750 |
744 | 751 |
745 } } // namespace v8::internal | 752 } } // namespace v8::internal |
746 | 753 |
747 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 754 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |