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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 // Distance between start of patched debug break slot and the emitted address | 614 // Distance between start of patched debug break slot and the emitted address |
615 // to jump to. | 615 // to jump to. |
616 static const int kPatchDebugBreakSlotAddressOffset = 1; // JMP imm32. | 616 static const int kPatchDebugBreakSlotAddressOffset = 1; // JMP imm32. |
617 | 617 |
618 static const int kCallInstructionLength = 5; | 618 static const int kCallInstructionLength = 5; |
619 static const int kJSReturnSequenceLength = 6; | 619 static const int kJSReturnSequenceLength = 6; |
620 | 620 |
621 // The debug break slot must be able to contain a call instruction. | 621 // The debug break slot must be able to contain a call instruction. |
622 static const int kDebugBreakSlotLength = kCallInstructionLength; | 622 static const int kDebugBreakSlotLength = kCallInstructionLength; |
623 | 623 |
624 // One byte opcode for test eax,0xXXXXXXXX. | |
625 static const byte kTestEaxByte = 0xA9; | |
626 // One byte opcode for test al, 0xXX. | 624 // One byte opcode for test al, 0xXX. |
627 static const byte kTestAlByte = 0xA8; | 625 static const byte kTestAlByte = 0xA8; |
628 // One byte opcode for nop. | 626 // One byte opcode for nop. |
629 static const byte kNopByte = 0x90; | 627 static const byte kNopByte = 0x90; |
630 | 628 |
631 // One byte opcode for a short unconditional jump. | 629 // One byte opcode for a short unconditional jump. |
632 static const byte kJmpShortOpcode = 0xEB; | 630 static const byte kJmpShortOpcode = 0xEB; |
633 // One byte prefix for a short conditional jump. | 631 // One byte prefix for a short conditional jump. |
634 static const byte kJccShortPrefix = 0x70; | 632 static const byte kJccShortPrefix = 0x70; |
635 static const byte kJncShortOpcode = kJccShortPrefix | not_carry; | 633 static const byte kJncShortOpcode = kJccShortPrefix | not_carry; |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 private: | 1203 private: |
1206 Assembler* assembler_; | 1204 Assembler* assembler_; |
1207 #ifdef DEBUG | 1205 #ifdef DEBUG |
1208 int space_before_; | 1206 int space_before_; |
1209 #endif | 1207 #endif |
1210 }; | 1208 }; |
1211 | 1209 |
1212 } } // namespace v8::internal | 1210 } } // namespace v8::internal |
1213 | 1211 |
1214 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1212 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |