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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 // --------------------------------------------------------------------------- | 669 // --------------------------------------------------------------------------- |
670 // Exception handling | 670 // Exception handling |
671 | 671 |
672 // Push a new try handler and link into try handler chain. The return | 672 // Push a new try handler and link into try handler chain. The return |
673 // address must be pushed before calling this helper. | 673 // address must be pushed before calling this helper. |
674 void PushTryHandler(CodeLocation try_location, HandlerType type); | 674 void PushTryHandler(CodeLocation try_location, HandlerType type); |
675 | 675 |
676 // Unlink the stack handler on top of the stack from the try handler chain. | 676 // Unlink the stack handler on top of the stack from the try handler chain. |
677 void PopTryHandler(); | 677 void PopTryHandler(); |
678 | 678 |
| 679 // Activate the top handler in the try hander chain and pass the |
| 680 // thrown value. |
| 681 void Throw(Register value); |
| 682 |
| 683 // Propagate an uncatchable exception out of the current JS stack. |
| 684 void ThrowUncatchable(UncatchableExceptionType type, Register value); |
| 685 |
679 // --------------------------------------------------------------------------- | 686 // --------------------------------------------------------------------------- |
680 // Inline caching support | 687 // Inline caching support |
681 | 688 |
682 // Generate code for checking access rights - used for security checks | 689 // Generate code for checking access rights - used for security checks |
683 // on access to global objects across environments. The holder register | 690 // on access to global objects across environments. The holder register |
684 // is left untouched, but the scratch register and kScratchRegister, | 691 // is left untouched, but the scratch register and kScratchRegister, |
685 // which must be different, are clobbered. | 692 // which must be different, are clobbered. |
686 void CheckAccessGlobalProxy(Register holder_reg, | 693 void CheckAccessGlobalProxy(Register holder_reg, |
687 Register scratch, | 694 Register scratch, |
688 Label* miss); | 695 Label* miss); |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 Jump(adaptor, RelocInfo::CODE_TARGET); | 1806 Jump(adaptor, RelocInfo::CODE_TARGET); |
1800 } | 1807 } |
1801 bind(&invoke); | 1808 bind(&invoke); |
1802 } | 1809 } |
1803 } | 1810 } |
1804 | 1811 |
1805 | 1812 |
1806 } } // namespace v8::internal | 1813 } } // namespace v8::internal |
1807 | 1814 |
1808 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1815 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |