| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 // ----------------------------------------------------------------------------- | 368 // ----------------------------------------------------------------------------- |
| 369 // Machine instruction Operands | 369 // Machine instruction Operands |
| 370 | 370 |
| 371 enum ScaleFactor { | 371 enum ScaleFactor { |
| 372 times_1 = 0, | 372 times_1 = 0, |
| 373 times_2 = 1, | 373 times_2 = 1, |
| 374 times_4 = 2, | 374 times_4 = 2, |
| 375 times_8 = 3, | 375 times_8 = 3, |
| 376 times_int_size = times_4, | 376 times_int_size = times_4, |
| 377 times_pointer_size = times_8 | 377 times_pointer_size = (kPointerSize == 8) ? times_8 : times_4 |
| 378 }; | 378 }; |
| 379 | 379 |
| 380 | 380 |
| 381 class Operand BASE_EMBEDDED { | 381 class Operand BASE_EMBEDDED { |
| 382 public: | 382 public: |
| 383 // [base + disp/r] | 383 // [base + disp/r] |
| 384 Operand(Register base, int32_t disp); | 384 Operand(Register base, int32_t disp); |
| 385 | 385 |
| 386 // [base + index*scale + disp/r] | 386 // [base + index*scale + disp/r] |
| 387 Operand(Register base, | 387 Operand(Register base, |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 } | 993 } |
| 994 | 994 |
| 995 void or_(const Operand& dst, Immediate src) { | 995 void or_(const Operand& dst, Immediate src) { |
| 996 immediate_arithmetic_op(0x1, dst, src); | 996 immediate_arithmetic_op(0x1, dst, src); |
| 997 } | 997 } |
| 998 | 998 |
| 999 void orl(const Operand& dst, Immediate src) { | 999 void orl(const Operand& dst, Immediate src) { |
| 1000 immediate_arithmetic_op_32(0x1, dst, src); | 1000 immediate_arithmetic_op_32(0x1, dst, src); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 | |
| 1004 void rcl(Register dst, Immediate imm8) { | 1003 void rcl(Register dst, Immediate imm8) { |
| 1005 shift(dst, imm8, 0x2); | 1004 shift(dst, imm8, 0x2); |
| 1006 } | 1005 } |
| 1007 | 1006 |
| 1008 void rol(Register dst, Immediate imm8) { | 1007 void rol(Register dst, Immediate imm8) { |
| 1009 shift(dst, imm8, 0x0); | 1008 shift(dst, imm8, 0x0); |
| 1010 } | 1009 } |
| 1011 | 1010 |
| 1012 void roll(Register dst, Immediate imm8) { | 1011 void roll(Register dst, Immediate imm8) { |
| 1013 shift_32(dst, imm8, 0x0); | 1012 shift_32(dst, imm8, 0x0); |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1732 private: | 1731 private: |
| 1733 Assembler* assembler_; | 1732 Assembler* assembler_; |
| 1734 #ifdef DEBUG | 1733 #ifdef DEBUG |
| 1735 int space_before_; | 1734 int space_before_; |
| 1736 #endif | 1735 #endif |
| 1737 }; | 1736 }; |
| 1738 | 1737 |
| 1739 } } // namespace v8::internal | 1738 } } // namespace v8::internal |
| 1740 | 1739 |
| 1741 #endif // V8_X64_ASSEMBLER_X64_H_ | 1740 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |