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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 static const int kCallInstructionLength = 5; | 564 static const int kCallInstructionLength = 5; |
565 static const int kJSReturnSequenceLength = 6; | 565 static const int kJSReturnSequenceLength = 6; |
566 | 566 |
567 // The debug break slot must be able to contain a call instruction. | 567 // The debug break slot must be able to contain a call instruction. |
568 static const int kDebugBreakSlotLength = kCallInstructionLength; | 568 static const int kDebugBreakSlotLength = kCallInstructionLength; |
569 | 569 |
570 // One byte opcode for test eax,0xXXXXXXXX. | 570 // One byte opcode for test eax,0xXXXXXXXX. |
571 static const byte kTestEaxByte = 0xA9; | 571 static const byte kTestEaxByte = 0xA9; |
572 // One byte opcode for test al, 0xXX. | 572 // One byte opcode for test al, 0xXX. |
573 static const byte kTestAlByte = 0xA8; | 573 static const byte kTestAlByte = 0xA8; |
574 // One byte opcode for nop. | |
575 static const byte kNopByte = 0x90; | |
576 | |
577 // One byte opcode for a short unconditional jump. | |
578 static const byte kJmpShortOpcode = 0xEB; | |
579 // One byte prefix for a short conditional jump. | |
580 static const byte kJccShortPrefix = 0x70; | |
581 | |
582 | 574 |
583 // --------------------------------------------------------------------------- | 575 // --------------------------------------------------------------------------- |
584 // Code generation | 576 // Code generation |
585 // | 577 // |
586 // - function names correspond one-to-one to ia32 instruction mnemonics | 578 // - function names correspond one-to-one to ia32 instruction mnemonics |
587 // - unless specified otherwise, instructions operate on 32bit operands | 579 // - unless specified otherwise, instructions operate on 32bit operands |
588 // - instructions on 8bit (byte) operands/registers have a trailing '_b' | 580 // - instructions on 8bit (byte) operands/registers have a trailing '_b' |
589 // - instructions on 16bit (word) operands/registers have a trailing '_w' | 581 // - instructions on 16bit (word) operands/registers have a trailing '_w' |
590 // - naming conflicts with C++ keywords are resolved via a trailing '_' | 582 // - naming conflicts with C++ keywords are resolved via a trailing '_' |
591 | 583 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 private: | 1064 private: |
1073 Assembler* assembler_; | 1065 Assembler* assembler_; |
1074 #ifdef DEBUG | 1066 #ifdef DEBUG |
1075 int space_before_; | 1067 int space_before_; |
1076 #endif | 1068 #endif |
1077 }; | 1069 }; |
1078 | 1070 |
1079 } } // namespace v8::internal | 1071 } } // namespace v8::internal |
1080 | 1072 |
1081 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1073 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |