| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 // Return the code target address of the patch debug break slot | 540 // Return the code target address of the patch debug break slot |
| 541 inline static Address break_address_from_return_address(Address pc); | 541 inline static Address break_address_from_return_address(Address pc); |
| 542 | 542 |
| 543 // This sets the branch destination (which is in the instruction on x86). | 543 // This sets the branch destination (which is in the instruction on x86). |
| 544 // This is for calls and branches within generated code. | 544 // This is for calls and branches within generated code. |
| 545 inline static void deserialization_set_special_target_at( | 545 inline static void deserialization_set_special_target_at( |
| 546 Address instruction_payload, Code* code, Address target) { | 546 Address instruction_payload, Code* code, Address target) { |
| 547 set_target_address_at(instruction_payload, code, target); | 547 set_target_address_at(instruction_payload, code, target); |
| 548 } | 548 } |
| 549 | 549 |
| 550 inline static void deserialization_set_target_internal_reference_at( |
| 551 Address instruction, Address target); |
| 552 |
| 550 static const int kSpecialTargetSize = kPointerSize; | 553 static const int kSpecialTargetSize = kPointerSize; |
| 551 | 554 |
| 552 // Distance between the address of the code target in the call instruction | 555 // Distance between the address of the code target in the call instruction |
| 553 // and the return address | 556 // and the return address |
| 554 static const int kCallTargetAddressOffset = kPointerSize; | 557 static const int kCallTargetAddressOffset = kPointerSize; |
| 555 // Distance between start of patched return sequence and the emitted address | 558 // Distance between start of patched return sequence and the emitted address |
| 556 // to jump to. | 559 // to jump to. |
| 557 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. | 560 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. |
| 558 | 561 |
| 559 // Distance between start of patched debug break slot and the emitted address | 562 // Distance between start of patched debug break slot and the emitted address |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 private: | 1437 private: |
| 1435 Assembler* assembler_; | 1438 Assembler* assembler_; |
| 1436 #ifdef DEBUG | 1439 #ifdef DEBUG |
| 1437 int space_before_; | 1440 int space_before_; |
| 1438 #endif | 1441 #endif |
| 1439 }; | 1442 }; |
| 1440 | 1443 |
| 1441 } } // namespace v8::internal | 1444 } } // namespace v8::internal |
| 1442 | 1445 |
| 1443 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1446 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |