| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 } | 599 } |
| 600 | 600 |
| 601 void addq(Register dst, Immediate src) { | 601 void addq(Register dst, Immediate src) { |
| 602 immediate_arithmetic_op(0x0, dst, src); | 602 immediate_arithmetic_op(0x0, dst, src); |
| 603 } | 603 } |
| 604 | 604 |
| 605 void addq(const Operand& dst, Immediate src) { | 605 void addq(const Operand& dst, Immediate src) { |
| 606 immediate_arithmetic_op(0x0, dst, src); | 606 immediate_arithmetic_op(0x0, dst, src); |
| 607 } | 607 } |
| 608 | 608 |
| 609 void sbbl(Register dst, Register src) { |
| 610 if (dst.low_bits() == 4) { // Forces SIB byte if dst is base register. |
| 611 arithmetic_op_32(0x19, src, dst); |
| 612 } else { |
| 613 arithmetic_op_32(0x1b, dst, src); |
| 614 } |
| 615 } |
| 616 |
| 609 void cmpb(Register dst, Immediate src) { | 617 void cmpb(Register dst, Immediate src) { |
| 610 immediate_arithmetic_op_8(0x7, dst, src); | 618 immediate_arithmetic_op_8(0x7, dst, src); |
| 611 } | 619 } |
| 612 | 620 |
| 613 void cmpb_al(Immediate src); | 621 void cmpb_al(Immediate src); |
| 614 | 622 |
| 615 void cmpb(Register dst, Register src) { | 623 void cmpb(Register dst, Register src) { |
| 616 arithmetic_op(0x3A, dst, src); | 624 arithmetic_op(0x3A, dst, src); |
| 617 } | 625 } |
| 618 | 626 |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 private: | 1402 private: |
| 1395 Assembler* assembler_; | 1403 Assembler* assembler_; |
| 1396 #ifdef DEBUG | 1404 #ifdef DEBUG |
| 1397 int space_before_; | 1405 int space_before_; |
| 1398 #endif | 1406 #endif |
| 1399 }; | 1407 }; |
| 1400 | 1408 |
| 1401 } } // namespace v8::internal | 1409 } } // namespace v8::internal |
| 1402 | 1410 |
| 1403 #endif // V8_X64_ASSEMBLER_X64_H_ | 1411 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |