| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 // Return the code target address of the patch debug break slot | 523 // Return the code target address of the patch debug break slot |
| 524 inline static Address break_address_from_return_address(Address pc); | 524 inline static Address break_address_from_return_address(Address pc); |
| 525 | 525 |
| 526 // This sets the branch destination (which is in the instruction on x86). | 526 // This sets the branch destination (which is in the instruction on x86). |
| 527 // This is for calls and branches within generated code. | 527 // This is for calls and branches within generated code. |
| 528 inline static void deserialization_set_special_target_at( | 528 inline static void deserialization_set_special_target_at( |
| 529 Address instruction_payload, Code* code, Address target) { | 529 Address instruction_payload, Code* code, Address target) { |
| 530 set_target_address_at(instruction_payload, code, target); | 530 set_target_address_at(instruction_payload, code, target); |
| 531 } | 531 } |
| 532 | 532 |
| 533 // This sets the internal reference at the pc. |
| 534 inline static void deserialization_set_target_internal_reference_at( |
| 535 Address pc, Address target, |
| 536 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE); |
| 537 |
| 533 static const int kSpecialTargetSize = kPointerSize; | 538 static const int kSpecialTargetSize = kPointerSize; |
| 534 | 539 |
| 535 // Distance between the address of the code target in the call instruction | 540 // Distance between the address of the code target in the call instruction |
| 536 // and the return address | 541 // and the return address |
| 537 static const int kCallTargetAddressOffset = kPointerSize; | 542 static const int kCallTargetAddressOffset = kPointerSize; |
| 538 // Distance between start of patched return sequence and the emitted address | 543 // Distance between start of patched return sequence and the emitted address |
| 539 // to jump to. | 544 // to jump to. |
| 540 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. | 545 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. |
| 541 | 546 |
| 542 // Distance between start of patched debug break slot and the emitted address | 547 // Distance between start of patched debug break slot and the emitted address |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 private: | 1080 private: |
| 1076 Assembler* assembler_; | 1081 Assembler* assembler_; |
| 1077 #ifdef DEBUG | 1082 #ifdef DEBUG |
| 1078 int space_before_; | 1083 int space_before_; |
| 1079 #endif | 1084 #endif |
| 1080 }; | 1085 }; |
| 1081 | 1086 |
| 1082 } } // namespace v8::internal | 1087 } } // namespace v8::internal |
| 1083 | 1088 |
| 1084 #endif // V8_X87_ASSEMBLER_X87_H_ | 1089 #endif // V8_X87_ASSEMBLER_X87_H_ |
| OLD | NEW |