| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2695 // Jump to a faked try block that does the invoke, with a faked catch | 2695 // Jump to a faked try block that does the invoke, with a faked catch |
| 2696 // block that sets the pending exception. | 2696 // block that sets the pending exception. |
| 2697 __ jmp(&invoke); | 2697 __ jmp(&invoke); |
| 2698 __ bind(&handler_entry); | 2698 __ bind(&handler_entry); |
| 2699 handler_offset_ = handler_entry.pos(); | 2699 handler_offset_ = handler_entry.pos(); |
| 2700 // Caught exception: Store result (exception) in the pending exception | 2700 // Caught exception: Store result (exception) in the pending exception |
| 2701 // field in the JSEnv and return a failure sentinel. | 2701 // field in the JSEnv and return a failure sentinel. |
| 2702 ExternalReference pending_exception(Isolate::kPendingExceptionAddress, | 2702 ExternalReference pending_exception(Isolate::kPendingExceptionAddress, |
| 2703 isolate); | 2703 isolate); |
| 2704 __ Store(pending_exception, rax); | 2704 __ Store(pending_exception, rax); |
| 2705 __ Move(rax, Failure::Exception(), Assembler::RelocInfoNone()); | 2705 __ LoadRoot(rax, Heap::kExceptionRootIndex); |
| 2706 __ jmp(&exit); | 2706 __ jmp(&exit); |
| 2707 | 2707 |
| 2708 // Invoke: Link this frame into the handler chain. There's only one | 2708 // Invoke: Link this frame into the handler chain. There's only one |
| 2709 // handler block in this code object, so its index is 0. | 2709 // handler block in this code object, so its index is 0. |
| 2710 __ bind(&invoke); | 2710 __ bind(&invoke); |
| 2711 __ PushTryHandler(StackHandler::JS_ENTRY, 0); | 2711 __ PushTryHandler(StackHandler::JS_ENTRY, 0); |
| 2712 | 2712 |
| 2713 // Clear any pending exceptions. | 2713 // Clear any pending exceptions. |
| 2714 __ LoadRoot(rax, Heap::kTheHoleValueRootIndex); | 2714 __ LoadRoot(rax, Heap::kTheHoleValueRootIndex); |
| 2715 __ Store(pending_exception, rax); | 2715 __ Store(pending_exception, rax); |
| (...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5028 return_value_operand, | 5028 return_value_operand, |
| 5029 NULL); | 5029 NULL); |
| 5030 } | 5030 } |
| 5031 | 5031 |
| 5032 | 5032 |
| 5033 #undef __ | 5033 #undef __ |
| 5034 | 5034 |
| 5035 } } // namespace v8::internal | 5035 } } // namespace v8::internal |
| 5036 | 5036 |
| 5037 #endif // V8_TARGET_ARCH_X64 | 5037 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |