| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 static const int kJumpInstructionLength = 13; | 558 static const int kJumpInstructionLength = 13; |
| 559 static const int kCallInstructionLength = 13; | 559 static const int kCallInstructionLength = 13; |
| 560 static const int kJSReturnSequenceLength = 13; | 560 static const int kJSReturnSequenceLength = 13; |
| 561 static const int kShortCallInstructionLength = 5; | 561 static const int kShortCallInstructionLength = 5; |
| 562 | 562 |
| 563 // The debug break slot must be able to contain a call instruction. | 563 // The debug break slot must be able to contain a call instruction. |
| 564 static const int kDebugBreakSlotLength = kCallInstructionLength; | 564 static const int kDebugBreakSlotLength = kCallInstructionLength; |
| 565 | 565 |
| 566 // One byte opcode for test eax,0xXXXXXXXX. | 566 // One byte opcode for test eax,0xXXXXXXXX. |
| 567 static const byte kTestEaxByte = 0xA9; | 567 static const byte kTestEaxByte = 0xA9; |
| 568 // One byte opcode for test al, 0xXX. |
| 569 static const byte kTestAlByte = 0xA8; |
| 568 | 570 |
| 569 // --------------------------------------------------------------------------- | 571 // --------------------------------------------------------------------------- |
| 570 // Code generation | 572 // Code generation |
| 571 // | 573 // |
| 572 // Function names correspond one-to-one to x64 instruction mnemonics. | 574 // Function names correspond one-to-one to x64 instruction mnemonics. |
| 573 // Unless specified otherwise, instructions operate on 64-bit operands. | 575 // Unless specified otherwise, instructions operate on 64-bit operands. |
| 574 // | 576 // |
| 575 // If we need versions of an assembly instruction that operate on different | 577 // If we need versions of an assembly instruction that operate on different |
| 576 // width arguments, we add a single-letter suffix specifying the width. | 578 // width arguments, we add a single-letter suffix specifying the width. |
| 577 // This is done for the following instructions: mov, cmp, inc, dec, | 579 // This is done for the following instructions: mov, cmp, inc, dec, |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 private: | 1563 private: |
| 1562 Assembler* assembler_; | 1564 Assembler* assembler_; |
| 1563 #ifdef DEBUG | 1565 #ifdef DEBUG |
| 1564 int space_before_; | 1566 int space_before_; |
| 1565 #endif | 1567 #endif |
| 1566 }; | 1568 }; |
| 1567 | 1569 |
| 1568 } } // namespace v8::internal | 1570 } } // namespace v8::internal |
| 1569 | 1571 |
| 1570 #endif // V8_X64_ASSEMBLER_X64_H_ | 1572 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |