OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 8216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8227 __ bind(&skip); | 8227 __ bind(&skip); |
8228 __ ret(0); | 8228 __ ret(0); |
8229 } | 8229 } |
8230 | 8230 |
8231 | 8231 |
8232 void CEntryStub::GenerateCore(MacroAssembler* masm, | 8232 void CEntryStub::GenerateCore(MacroAssembler* masm, |
8233 Label* throw_normal_exception, | 8233 Label* throw_normal_exception, |
8234 Label* throw_termination_exception, | 8234 Label* throw_termination_exception, |
8235 Label* throw_out_of_memory_exception, | 8235 Label* throw_out_of_memory_exception, |
8236 bool do_gc, | 8236 bool do_gc, |
8237 bool always_allocate_scope) { | 8237 bool always_allocate_scope, |
| 8238 int /* alignment_skew */) { |
8238 // rax: result parameter for PerformGC, if any. | 8239 // rax: result parameter for PerformGC, if any. |
8239 // rbx: pointer to C function (C callee-saved). | 8240 // rbx: pointer to C function (C callee-saved). |
8240 // rbp: frame pointer (restored after C call). | 8241 // rbp: frame pointer (restored after C call). |
8241 // rsp: stack pointer (restored after C call). | 8242 // rsp: stack pointer (restored after C call). |
8242 // r14: number of arguments including receiver (C callee-saved). | 8243 // r14: number of arguments including receiver (C callee-saved). |
8243 // r15: pointer to the first argument (C callee-saved). | 8244 // r15: pointer to the first argument (C callee-saved). |
8244 // This pointer is reused in LeaveExitFrame(), so it is stored in a | 8245 // This pointer is reused in LeaveExitFrame(), so it is stored in a |
8245 // callee-saved register. | 8246 // callee-saved register. |
8246 | 8247 |
8247 // Simple results returned in rax (both AMD64 and Win64 calling conventions). | 8248 // Simple results returned in rax (both AMD64 and Win64 calling conventions). |
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10428 // Call the function from C++. | 10429 // Call the function from C++. |
10429 return FUNCTION_CAST<ModuloFunction>(buffer); | 10430 return FUNCTION_CAST<ModuloFunction>(buffer); |
10430 } | 10431 } |
10431 | 10432 |
10432 #endif | 10433 #endif |
10433 | 10434 |
10434 | 10435 |
10435 #undef __ | 10436 #undef __ |
10436 | 10437 |
10437 } } // namespace v8::internal | 10438 } } // namespace v8::internal |
OLD | NEW |