| 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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1837   // Jump to a faked try block that does the invoke, with a faked catch | 1837   // Jump to a faked try block that does the invoke, with a faked catch | 
| 1838   // block that sets the pending exception. | 1838   // block that sets the pending exception. | 
| 1839   __ B(&invoke); | 1839   __ B(&invoke); | 
| 1840 | 1840 | 
| 1841   // Prevent the constant pool from being emitted between the record of the | 1841   // Prevent the constant pool from being emitted between the record of the | 
| 1842   // handler_entry position and the first instruction of the sequence here. | 1842   // handler_entry position and the first instruction of the sequence here. | 
| 1843   // There is no risk because Assembler::Emit() emits the instruction before | 1843   // There is no risk because Assembler::Emit() emits the instruction before | 
| 1844   // checking for constant pool emission, but we do not want to depend on | 1844   // checking for constant pool emission, but we do not want to depend on | 
| 1845   // that. | 1845   // that. | 
| 1846   { | 1846   { | 
| 1847     Assembler::BlockConstPoolScope block_const_pool(masm); | 1847     Assembler::BlockPoolsScope block_pools(masm); | 
| 1848     __ bind(&handler_entry); | 1848     __ bind(&handler_entry); | 
| 1849     handler_offset_ = handler_entry.pos(); | 1849     handler_offset_ = handler_entry.pos(); | 
| 1850     // Caught exception: Store result (exception) in the pending exception | 1850     // Caught exception: Store result (exception) in the pending exception | 
| 1851     // field in the JSEnv and return a failure sentinel. Coming in here the | 1851     // field in the JSEnv and return a failure sentinel. Coming in here the | 
| 1852     // fp will be invalid because the PushTryHandler below sets it to 0 to | 1852     // fp will be invalid because the PushTryHandler below sets it to 0 to | 
| 1853     // signal the existence of the JSEntry frame. | 1853     // signal the existence of the JSEntry frame. | 
| 1854     // TODO(jbramley): Do this in the Assembler. | 1854     // TODO(jbramley): Do this in the Assembler. | 
| 1855     __ Mov(x10, Operand(ExternalReference(Isolate::kPendingExceptionAddress, | 1855     __ Mov(x10, Operand(ExternalReference(Isolate::kPendingExceptionAddress, | 
| 1856            isolate))); | 1856            isolate))); | 
| 1857   } | 1857   } | 
| (...skipping 3085 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4943   __ Drop(x1); | 4943   __ Drop(x1); | 
| 4944   // Return to IC Miss stub, continuation still on stack. | 4944   // Return to IC Miss stub, continuation still on stack. | 
| 4945   __ Ret(); | 4945   __ Ret(); | 
| 4946 } | 4946 } | 
| 4947 | 4947 | 
| 4948 | 4948 | 
| 4949 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4949 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 
| 4950   if (masm->isolate()->function_entry_hook() != NULL) { | 4950   if (masm->isolate()->function_entry_hook() != NULL) { | 
| 4951     // TODO(all): This needs to be reliably consistent with | 4951     // TODO(all): This needs to be reliably consistent with | 
| 4952     // kReturnAddressDistanceFromFunctionStart in ::Generate. | 4952     // kReturnAddressDistanceFromFunctionStart in ::Generate. | 
| 4953     Assembler::BlockConstPoolScope no_const_pools(masm); | 4953     Assembler::BlockPoolsScope no_pools(masm); | 
| 4954     ProfileEntryHookStub stub; | 4954     ProfileEntryHookStub stub; | 
| 4955     __ Push(lr); | 4955     __ Push(lr); | 
| 4956     __ CallStub(&stub); | 4956     __ CallStub(&stub); | 
| 4957     __ Pop(lr); | 4957     __ Pop(lr); | 
| 4958   } | 4958   } | 
| 4959 } | 4959 } | 
| 4960 | 4960 | 
| 4961 | 4961 | 
| 4962 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { | 4962 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { | 
| 4963   MacroAssembler::NoUseRealAbortsScope no_use_real_aborts(masm); | 4963   MacroAssembler::NoUseRealAbortsScope no_use_real_aborts(masm); | 
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5796                               MemOperand(fp, 6 * kPointerSize), | 5796                               MemOperand(fp, 6 * kPointerSize), | 
| 5797                               NULL); | 5797                               NULL); | 
| 5798 } | 5798 } | 
| 5799 | 5799 | 
| 5800 | 5800 | 
| 5801 #undef __ | 5801 #undef __ | 
| 5802 | 5802 | 
| 5803 } }  // namespace v8::internal | 5803 } }  // namespace v8::internal | 
| 5804 | 5804 | 
| 5805 #endif  // V8_TARGET_ARCH_A64 | 5805 #endif  // V8_TARGET_ARCH_A64 | 
| OLD | NEW | 
|---|