OLD | NEW |
1 // Copyright 2010 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 2754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 __ bind(&skip); | 2766 __ bind(&skip); |
2767 __ ret(0); | 2767 __ ret(0); |
2768 } | 2768 } |
2769 | 2769 |
2770 | 2770 |
2771 void CEntryStub::GenerateCore(MacroAssembler* masm, | 2771 void CEntryStub::GenerateCore(MacroAssembler* masm, |
2772 Label* throw_normal_exception, | 2772 Label* throw_normal_exception, |
2773 Label* throw_termination_exception, | 2773 Label* throw_termination_exception, |
2774 Label* throw_out_of_memory_exception, | 2774 Label* throw_out_of_memory_exception, |
2775 bool do_gc, | 2775 bool do_gc, |
2776 bool always_allocate_scope, | 2776 bool always_allocate_scope) { |
2777 int /* alignment_skew */) { | |
2778 // rax: result parameter for PerformGC, if any. | 2777 // rax: result parameter for PerformGC, if any. |
2779 // rbx: pointer to C function (C callee-saved). | 2778 // rbx: pointer to C function (C callee-saved). |
2780 // rbp: frame pointer (restored after C call). | 2779 // rbp: frame pointer (restored after C call). |
2781 // rsp: stack pointer (restored after C call). | 2780 // rsp: stack pointer (restored after C call). |
2782 // r14: number of arguments including receiver (C callee-saved). | 2781 // r14: number of arguments including receiver (C callee-saved). |
2783 // r12: pointer to the first argument (C callee-saved). | 2782 // r12: pointer to the first argument (C callee-saved). |
2784 // This pointer is reused in LeaveExitFrame(), so it is stored in a | 2783 // This pointer is reused in LeaveExitFrame(), so it is stored in a |
2785 // callee-saved register. | 2784 // callee-saved register. |
2786 | 2785 |
2787 // Simple results returned in rax (both AMD64 and Win64 calling conventions). | 2786 // Simple results returned in rax (both AMD64 and Win64 calling conventions). |
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4390 | 4389 |
4391 // Do a tail call to the rewritten stub. | 4390 // Do a tail call to the rewritten stub. |
4392 __ jmp(rdi); | 4391 __ jmp(rdi); |
4393 } | 4392 } |
4394 | 4393 |
4395 #undef __ | 4394 #undef __ |
4396 | 4395 |
4397 } } // namespace v8::internal | 4396 } } // namespace v8::internal |
4398 | 4397 |
4399 #endif // V8_TARGET_ARCH_X64 | 4398 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |