| 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; | 
|  | 645 | 
| 643 | 646 | 
| 644   // --------------------------------------------------------------------------- | 647   // --------------------------------------------------------------------------- | 
| 645   // Code generation | 648   // Code generation | 
| 646   // | 649   // | 
| 647   // - function names correspond one-to-one to ia32 instruction mnemonics | 650   // - function names correspond one-to-one to ia32 instruction mnemonics | 
| 648   // - unless specified otherwise, instructions operate on 32bit operands | 651   // - unless specified otherwise, instructions operate on 32bit operands | 
| 649   // - instructions on 8bit (byte) operands/registers have a trailing '_b' | 652   // - instructions on 8bit (byte) operands/registers have a trailing '_b' | 
| 650   // - instructions on 16bit (word) operands/registers have a trailing '_w' | 653   // - instructions on 16bit (word) operands/registers have a trailing '_w' | 
| 651   // - naming conflicts with C++ keywords are resolved via a trailing '_' | 654   // - naming conflicts with C++ keywords are resolved via a trailing '_' | 
| 652 | 655 | 
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1211  private: | 1214  private: | 
| 1212   Assembler* assembler_; | 1215   Assembler* assembler_; | 
| 1213 #ifdef DEBUG | 1216 #ifdef DEBUG | 
| 1214   int space_before_; | 1217   int space_before_; | 
| 1215 #endif | 1218 #endif | 
| 1216 }; | 1219 }; | 
| 1217 | 1220 | 
| 1218 } }  // namespace v8::internal | 1221 } }  // namespace v8::internal | 
| 1219 | 1222 | 
| 1220 #endif  // V8_IA32_ASSEMBLER_IA32_H_ | 1223 #endif  // V8_IA32_ASSEMBLER_IA32_H_ | 
| OLD | NEW | 
|---|