| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 | 597 |
| 598 // Control Flow | 598 // Control Flow |
| 599 void Jump(Address destination, RelocInfo::Mode rmode); | 599 void Jump(Address destination, RelocInfo::Mode rmode); |
| 600 void Jump(ExternalReference ext); | 600 void Jump(ExternalReference ext); |
| 601 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); | 601 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); |
| 602 | 602 |
| 603 void Call(Address destination, RelocInfo::Mode rmode); | 603 void Call(Address destination, RelocInfo::Mode rmode); |
| 604 void Call(ExternalReference ext); | 604 void Call(ExternalReference ext); |
| 605 void Call(Handle<Code> code_object, RelocInfo::Mode rmode); | 605 void Call(Handle<Code> code_object, RelocInfo::Mode rmode); |
| 606 | 606 |
| 607 // Emit call to the code we are currently generating. |
| 608 void CallSelf() { |
| 609 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
| 610 call(self, RelocInfo::CODE_TARGET); |
| 611 } |
| 612 |
| 607 // Non-x64 instructions. | 613 // Non-x64 instructions. |
| 608 // Push/pop all general purpose registers. | 614 // Push/pop all general purpose registers. |
| 609 // Does not push rsp/rbp nor any of the assembler's special purpose registers | 615 // Does not push rsp/rbp nor any of the assembler's special purpose registers |
| 610 // (kScratchRegister, kSmiConstantRegister, kRootRegister). | 616 // (kScratchRegister, kSmiConstantRegister, kRootRegister). |
| 611 void Pushad(); | 617 void Pushad(); |
| 612 void Popad(); | 618 void Popad(); |
| 613 // Sets the stack as after performing Popad, without actually loading the | 619 // Sets the stack as after performing Popad, without actually loading the |
| 614 // registers. | 620 // registers. |
| 615 void Dropad(); | 621 void Dropad(); |
| 616 | 622 |
| (...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1789 Jump(adaptor, RelocInfo::CODE_TARGET); | 1795 Jump(adaptor, RelocInfo::CODE_TARGET); |
| 1790 } | 1796 } |
| 1791 bind(&invoke); | 1797 bind(&invoke); |
| 1792 } | 1798 } |
| 1793 } | 1799 } |
| 1794 | 1800 |
| 1795 | 1801 |
| 1796 } } // namespace v8::internal | 1802 } } // namespace v8::internal |
| 1797 | 1803 |
| 1798 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1804 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |