| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 432 |
| 433 // GetCode emits any pending (non-emitted) code and fills the descriptor | 433 // GetCode emits any pending (non-emitted) code and fills the descriptor |
| 434 // desc. GetCode() is idempotent; it returns the same result if no other | 434 // desc. GetCode() is idempotent; it returns the same result if no other |
| 435 // Assembler functions are invoked in between GetCode() calls. | 435 // Assembler functions are invoked in between GetCode() calls. |
| 436 void GetCode(CodeDesc* desc); | 436 void GetCode(CodeDesc* desc); |
| 437 | 437 |
| 438 // Read/Modify the code target in the branch/call instruction at pc. | 438 // Read/Modify the code target in the branch/call instruction at pc. |
| 439 inline static Address target_address_at(Address pc); | 439 inline static Address target_address_at(Address pc); |
| 440 inline static void set_target_address_at(Address pc, Address target); | 440 inline static void set_target_address_at(Address pc, Address target); |
| 441 | 441 |
| 442 static const int kCallTargetSize = kPointerSize; |
| 443 |
| 442 // Distance between the address of the code target in the call instruction | 444 // Distance between the address of the code target in the call instruction |
| 443 // and the return address | 445 // and the return address |
| 444 static const int kCallTargetAddressOffset = kPointerSize; | 446 static const int kCallTargetAddressOffset = kPointerSize; |
| 445 // Distance between start of patched return sequence and the emitted address | 447 // Distance between start of patched return sequence and the emitted address |
| 446 // to jump to. | 448 // to jump to. |
| 447 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. | 449 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. |
| 448 | 450 |
| 449 | 451 |
| 450 // --------------------------------------------------------------------------- | 452 // --------------------------------------------------------------------------- |
| 451 // Code generation | 453 // Code generation |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 private: | 877 private: |
| 876 Assembler* assembler_; | 878 Assembler* assembler_; |
| 877 #ifdef DEBUG | 879 #ifdef DEBUG |
| 878 int space_before_; | 880 int space_before_; |
| 879 #endif | 881 #endif |
| 880 }; | 882 }; |
| 881 | 883 |
| 882 } } // namespace v8::internal | 884 } } // namespace v8::internal |
| 883 | 885 |
| 884 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 886 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |