| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3326 // Check if the current stack frame is marked as the outermost JS frame. | 3326 // Check if the current stack frame is marked as the outermost JS frame. |
| 3327 __ pop(rbx); | 3327 __ pop(rbx); |
| 3328 __ Cmp(rbx, Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME)); | 3328 __ Cmp(rbx, Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME)); |
| 3329 __ j(not_equal, ¬_outermost_js_2); | 3329 __ j(not_equal, ¬_outermost_js_2); |
| 3330 __ movq(kScratchRegister, js_entry_sp); | 3330 __ movq(kScratchRegister, js_entry_sp); |
| 3331 __ movq(Operand(kScratchRegister, 0), Immediate(0)); | 3331 __ movq(Operand(kScratchRegister, 0), Immediate(0)); |
| 3332 __ bind(¬_outermost_js_2); | 3332 __ bind(¬_outermost_js_2); |
| 3333 #endif | 3333 #endif |
| 3334 | 3334 |
| 3335 // Restore the top frame descriptor from the stack. | 3335 // Restore the top frame descriptor from the stack. |
| 3336 { | 3336 { Operand c_entry_fp_operand = masm->ExternalOperand(c_entry_fp); |
| 3337 Operand c_entry_fp_operand = masm->ExternalOperand(c_entry_fp); | |
| 3338 __ pop(c_entry_fp_operand); | 3337 __ pop(c_entry_fp_operand); |
| 3339 } | 3338 } |
| 3340 | 3339 |
| 3341 // Restore callee-saved registers (X64 conventions). | 3340 // Restore callee-saved registers (X64 conventions). |
| 3342 __ pop(rbx); | 3341 __ pop(rbx); |
| 3343 #ifdef _WIN64 | 3342 #ifdef _WIN64 |
| 3344 // Callee save on in Win64 ABI, arguments/volatile in AMD64 ABI. | 3343 // Callee save on in Win64 ABI, arguments/volatile in AMD64 ABI. |
| 3345 __ pop(rsi); | 3344 __ pop(rsi); |
| 3346 __ pop(rdi); | 3345 __ pop(rdi); |
| 3347 #endif | 3346 #endif |
| (...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5101 __ Drop(1); | 5100 __ Drop(1); |
| 5102 __ ret(2 * kPointerSize); | 5101 __ ret(2 * kPointerSize); |
| 5103 } | 5102 } |
| 5104 | 5103 |
| 5105 | 5104 |
| 5106 #undef __ | 5105 #undef __ |
| 5107 | 5106 |
| 5108 } } // namespace v8::internal | 5107 } } // namespace v8::internal |
| 5109 | 5108 |
| 5110 #endif // V8_TARGET_ARCH_X64 | 5109 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |