| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4812 | 4812 |
| 4813 | 4813 |
| 4814 // ---------------------------------------------------------------------------- | 4814 // ---------------------------------------------------------------------------- |
| 4815 // Non-local control flow support. | 4815 // Non-local control flow support. |
| 4816 | 4816 |
| 4817 | 4817 |
| 4818 void FullCodeGenerator::EnterFinallyBlock() { | 4818 void FullCodeGenerator::EnterFinallyBlock() { |
| 4819 ASSERT(!result_register().is(rdx)); | 4819 ASSERT(!result_register().is(rdx)); |
| 4820 ASSERT(!result_register().is(rcx)); | 4820 ASSERT(!result_register().is(rcx)); |
| 4821 // Cook return address on top of stack (smi encoded Code* delta) | 4821 // Cook return address on top of stack (smi encoded Code* delta) |
| 4822 __ pop(rdx); | 4822 __ PopReturnAddressTo(rdx); |
| 4823 __ Move(rcx, masm_->CodeObject()); | 4823 __ Move(rcx, masm_->CodeObject()); |
| 4824 __ subq(rdx, rcx); | 4824 __ subq(rdx, rcx); |
| 4825 __ Integer32ToSmi(rdx, rdx); | 4825 __ Integer32ToSmi(rdx, rdx); |
| 4826 __ push(rdx); | 4826 __ push(rdx); |
| 4827 | 4827 |
| 4828 // Store result register while executing finally block. | 4828 // Store result register while executing finally block. |
| 4829 __ push(result_register()); | 4829 __ push(result_register()); |
| 4830 | 4830 |
| 4831 // Store pending message while executing finally block. | 4831 // Store pending message while executing finally block. |
| 4832 ExternalReference pending_message_obj = | 4832 ExternalReference pending_message_obj = |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4905 *context_length = 0; | 4905 *context_length = 0; |
| 4906 return previous_; | 4906 return previous_; |
| 4907 } | 4907 } |
| 4908 | 4908 |
| 4909 | 4909 |
| 4910 #undef __ | 4910 #undef __ |
| 4911 | 4911 |
| 4912 } } // namespace v8::internal | 4912 } } // namespace v8::internal |
| 4913 | 4913 |
| 4914 #endif // V8_TARGET_ARCH_X64 | 4914 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |