| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 Label::Distance near_jump = Label::kFar); | 571 Label::Distance near_jump = Label::kFar); |
| 572 | 572 |
| 573 // Negating a smi can give a negative zero or too large positive value. | 573 // Negating a smi can give a negative zero or too large positive value. |
| 574 // NOTICE: This operation jumps on success, not failure! | 574 // NOTICE: This operation jumps on success, not failure! |
| 575 void SmiNeg(Register dst, | 575 void SmiNeg(Register dst, |
| 576 Register src, | 576 Register src, |
| 577 Label* on_smi_result, | 577 Label* on_smi_result, |
| 578 Label::Distance near_jump = Label::kFar); | 578 Label::Distance near_jump = Label::kFar); |
| 579 | 579 |
| 580 // Adds smi values and return the result as a smi. | 580 // Adds smi values and return the result as a smi. |
| 581 // If dst is src1, then src1 will be destroyed, even if | 581 // If dst is src1, then src1 will be destroyed if the operation is |
| 582 // the operation is unsuccessful. | 582 // successful, otherwise kept intact. |
| 583 void SmiAdd(Register dst, | 583 void SmiAdd(Register dst, |
| 584 Register src1, | 584 Register src1, |
| 585 Register src2, | 585 Register src2, |
| 586 Label* on_not_smi_result, | 586 Label* on_not_smi_result, |
| 587 Label::Distance near_jump = Label::kFar); | 587 Label::Distance near_jump = Label::kFar); |
| 588 void SmiAdd(Register dst, | 588 void SmiAdd(Register dst, |
| 589 Register src1, | 589 Register src1, |
| 590 const Operand& src2, | 590 const Operand& src2, |
| 591 Label* on_not_smi_result, | 591 Label* on_not_smi_result, |
| 592 Label::Distance near_jump = Label::kFar); | 592 Label::Distance near_jump = Label::kFar); |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 masm->popfq(); \ | 1582 masm->popfq(); \ |
| 1583 } \ | 1583 } \ |
| 1584 masm-> | 1584 masm-> |
| 1585 #else | 1585 #else |
| 1586 #define ACCESS_MASM(masm) masm-> | 1586 #define ACCESS_MASM(masm) masm-> |
| 1587 #endif | 1587 #endif |
| 1588 | 1588 |
| 1589 } } // namespace v8::internal | 1589 } } // namespace v8::internal |
| 1590 | 1590 |
| 1591 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1591 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |