| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 static const byte kTestAlByte = 0xA8; | 633 static const byte kTestAlByte = 0xA8; |
| 634 // One byte opcode for nop. | 634 // One byte opcode for nop. |
| 635 static const byte kNopByte = 0x90; | 635 static const byte kNopByte = 0x90; |
| 636 | 636 |
| 637 // One byte opcode for a short unconditional jump. | 637 // One byte opcode for a short unconditional jump. |
| 638 static const byte kJmpShortOpcode = 0xEB; | 638 static const byte kJmpShortOpcode = 0xEB; |
| 639 // One byte prefix for a short conditional jump. | 639 // One byte prefix for a short conditional jump. |
| 640 static const byte kJccShortPrefix = 0x70; | 640 static const byte kJccShortPrefix = 0x70; |
| 641 static const byte kJncShortOpcode = kJccShortPrefix | not_carry; | 641 static const byte kJncShortOpcode = kJccShortPrefix | not_carry; |
| 642 static const byte kJcShortOpcode = kJccShortPrefix | carry; | 642 static const byte kJcShortOpcode = kJccShortPrefix | carry; |
| 643 static const byte kJnzShortOpcode = kJccShortPrefix | not_zero; |
| 644 static const byte kJzShortOpcode = kJccShortPrefix | zero; |
| 643 | 645 |
| 644 // --------------------------------------------------------------------------- | 646 // --------------------------------------------------------------------------- |
| 645 // Code generation | 647 // Code generation |
| 646 // | 648 // |
| 647 // - function names correspond one-to-one to ia32 instruction mnemonics | 649 // - function names correspond one-to-one to ia32 instruction mnemonics |
| 648 // - unless specified otherwise, instructions operate on 32bit operands | 650 // - unless specified otherwise, instructions operate on 32bit operands |
| 649 // - instructions on 8bit (byte) operands/registers have a trailing '_b' | 651 // - instructions on 8bit (byte) operands/registers have a trailing '_b' |
| 650 // - instructions on 16bit (word) operands/registers have a trailing '_w' | 652 // - instructions on 16bit (word) operands/registers have a trailing '_w' |
| 651 // - naming conflicts with C++ keywords are resolved via a trailing '_' | 653 // - naming conflicts with C++ keywords are resolved via a trailing '_' |
| 652 | 654 |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 private: | 1213 private: |
| 1212 Assembler* assembler_; | 1214 Assembler* assembler_; |
| 1213 #ifdef DEBUG | 1215 #ifdef DEBUG |
| 1214 int space_before_; | 1216 int space_before_; |
| 1215 #endif | 1217 #endif |
| 1216 }; | 1218 }; |
| 1217 | 1219 |
| 1218 } } // namespace v8::internal | 1220 } } // namespace v8::internal |
| 1219 | 1221 |
| 1220 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1222 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |