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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 }; | 221 }; |
222 | 222 |
223 | 223 |
224 // ----------------------------------------------------------------------------- | 224 // ----------------------------------------------------------------------------- |
225 // Machine instruction Operands | 225 // Machine instruction Operands |
226 | 226 |
227 enum ScaleFactor { | 227 enum ScaleFactor { |
228 times_1 = 0, | 228 times_1 = 0, |
229 times_2 = 1, | 229 times_2 = 1, |
230 times_4 = 2, | 230 times_4 = 2, |
231 times_8 = 3, | 231 times_8 = 3, |
Erik Corry
2010/01/15 12:02:09
This is unused
| |
232 times_int_size = times_4, | |
232 times_pointer_size = times_4, | 233 times_pointer_size = times_4, |
233 times_half_pointer_size = times_2 | 234 times_half_pointer_size = times_2 |
234 }; | 235 }; |
235 | 236 |
236 | 237 |
237 class Operand BASE_EMBEDDED { | 238 class Operand BASE_EMBEDDED { |
238 public: | 239 public: |
239 // reg | 240 // reg |
240 INLINE(explicit Operand(Register reg)); | 241 INLINE(explicit Operand(Register reg)); |
241 | 242 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
617 void shr_cl(Register dst); | 618 void shr_cl(Register dst); |
618 | 619 |
619 void subb(const Operand& dst, int8_t imm8); | 620 void subb(const Operand& dst, int8_t imm8); |
620 void subb(Register dst, const Operand& src); | 621 void subb(Register dst, const Operand& src); |
621 void sub(const Operand& dst, const Immediate& x); | 622 void sub(const Operand& dst, const Immediate& x); |
622 void sub(Register dst, const Operand& src); | 623 void sub(Register dst, const Operand& src); |
623 void sub(const Operand& dst, Register src); | 624 void sub(const Operand& dst, Register src); |
624 | 625 |
625 void test(Register reg, const Immediate& imm); | 626 void test(Register reg, const Immediate& imm); |
626 void test(Register reg, const Operand& op); | 627 void test(Register reg, const Operand& op); |
628 void test_b(Register reg, const Operand& op); | |
627 void test(const Operand& op, const Immediate& imm); | 629 void test(const Operand& op, const Immediate& imm); |
628 | 630 |
629 void xor_(Register dst, int32_t imm32); | 631 void xor_(Register dst, int32_t imm32); |
630 void xor_(Register dst, const Operand& src); | 632 void xor_(Register dst, const Operand& src); |
631 void xor_(const Operand& src, Register dst); | 633 void xor_(const Operand& src, Register dst); |
632 void xor_(const Operand& dst, const Immediate& x); | 634 void xor_(const Operand& dst, const Immediate& x); |
633 | 635 |
634 // Bit operations. | 636 // Bit operations. |
635 void bt(const Operand& dst, Register src); | 637 void bt(const Operand& dst, Register src); |
636 void bts(const Operand& dst, Register src); | 638 void bts(const Operand& dst, Register src); |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
905 private: | 907 private: |
906 Assembler* assembler_; | 908 Assembler* assembler_; |
907 #ifdef DEBUG | 909 #ifdef DEBUG |
908 int space_before_; | 910 int space_before_; |
909 #endif | 911 #endif |
910 }; | 912 }; |
911 | 913 |
912 } } // namespace v8::internal | 914 } } // namespace v8::internal |
913 | 915 |
914 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 916 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |