| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // Is the value a positive tagged smi. | 277 // Is the value a positive tagged smi. |
| 278 Condition CheckPositiveSmi(Register src); | 278 Condition CheckPositiveSmi(Register src); |
| 279 | 279 |
| 280 // Are both values tagged smis. | 280 // Are both values tagged smis. |
| 281 Condition CheckBothSmi(Register first, Register second); | 281 Condition CheckBothSmi(Register first, Register second); |
| 282 | 282 |
| 283 // Are both values tagged smis. | 283 // Are both values tagged smis. |
| 284 Condition CheckBothPositiveSmi(Register first, Register second); | 284 Condition CheckBothPositiveSmi(Register first, Register second); |
| 285 | 285 |
| 286 // Are either value a tagged smi. | 286 // Are either value a tagged smi. |
| 287 Condition CheckEitherSmi(Register first, Register second); | 287 Condition CheckEitherSmi(Register first, |
| 288 Register second, |
| 289 Register scratch = kScratchRegister); |
| 288 | 290 |
| 289 // Is the value the minimum smi value (since we are using | 291 // Is the value the minimum smi value (since we are using |
| 290 // two's complement numbers, negating the value is known to yield | 292 // two's complement numbers, negating the value is known to yield |
| 291 // a non-smi value). | 293 // a non-smi value). |
| 292 Condition CheckIsMinSmi(Register src); | 294 Condition CheckIsMinSmi(Register src); |
| 293 | 295 |
| 294 // Checks whether an 32-bit integer value is a valid for conversion | 296 // Checks whether an 32-bit integer value is a valid for conversion |
| 295 // to a smi. | 297 // to a smi. |
| 296 Condition CheckInteger32ValidSmiValue(Register src); | 298 Condition CheckInteger32ValidSmiValue(Register src); |
| 297 | 299 |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 } \ | 952 } \ |
| 951 masm-> | 953 masm-> |
| 952 #else | 954 #else |
| 953 #define ACCESS_MASM(masm) masm-> | 955 #define ACCESS_MASM(masm) masm-> |
| 954 #endif | 956 #endif |
| 955 | 957 |
| 956 | 958 |
| 957 } } // namespace v8::internal | 959 } } // namespace v8::internal |
| 958 | 960 |
| 959 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 961 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |