Chromium Code Reviews| Index: src/ia32/macro-assembler-ia32.h |
| =================================================================== |
| --- src/ia32/macro-assembler-ia32.h (revision 5829) |
| +++ src/ia32/macro-assembler-ia32.h (working copy) |
| @@ -123,13 +123,17 @@ |
| // to the first argument in register esi. |
| void EnterExitFrame(); |
| - void EnterApiExitFrame(int stack_space, int argc); |
| + void EnterApiExitFrame(int argc); |
| // Leave the current exit frame. Expects the return value in |
| // register eax:edx (untouched) and the pointer to the first |
| // argument in register esi. |
| void LeaveExitFrame(); |
| + // Leave the current exit frame. Expects the return value in |
| + // register eax (untouched). |
| + void LeaveApiExitFrame(); |
| + |
| // Find the function context up the context chain. |
| void LoadContext(Register dst, int context_chain_length); |
| @@ -499,12 +503,14 @@ |
| // Uses callee-saved esi to restore stack state after call. Arguments must be |
| // stored in ApiParameterOperand(0), ApiParameterOperand(1) etc. Saves |
| // context (esi). |
| - void PrepareCallApiFunction(int stack_space, int argc); |
| + void PrepareCallApiFunction(int argc, Register scratch); |
| // Calls an API function. Allocates HandleScope, extracts |
| // returned value from handle and propagates exceptions. |
| // Clobbers ebx, edi and caller-save registers. Restores context. |
| - MaybeObject* TryCallApiFunctionAndReturn(ApiFunction* function, int argc); |
| + // Returning removes stack_space * kPointerSize (GCed). |
|
antonm
2010/11/16 14:32:26
I'd use 'on return' instead of 'returning'
SeRya
2010/11/16 14:53:28
Done.
|
| + MaybeObject* TryCallApiFunctionAndReturn(ApiFunction* function, |
| + int stack_space); |
| // Jump to a runtime routine. |
| void JumpToExternalReference(const ExternalReference& ext); |