| Index: src/x64/macro-assembler-x64.h
|
| diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h
|
| index 76941ffbaf5383a6c0f09a6d2fa09e4af05d6683..6c8d5ff730c7d7a1149ee8952e74f7cedce76013 100644
|
| --- a/src/x64/macro-assembler-x64.h
|
| +++ b/src/x64/macro-assembler-x64.h
|
| @@ -1224,13 +1224,16 @@ class MacroAssembler: public Assembler {
|
| // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves
|
| // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize
|
| // inside the exit frame (not GCed) accessible via StackSpaceOperand.
|
| - void PrepareCallApiFunction(int arg_stack_space);
|
| + void PrepareCallApiFunction(int arg_stack_space, bool returns_handle);
|
|
|
| // Calls an API function. Allocates HandleScope, extracts returned value
|
| // from handle and propagates exceptions. Clobbers r14, r15, rbx and
|
| // caller-save registers. Restores context. On return removes
|
| // stack_space * kPointerSize (GCed).
|
| - void CallApiFunctionAndReturn(Address function_address, int stack_space);
|
| + void CallApiFunctionAndReturn(Address function_address,
|
| + int stack_space,
|
| + bool returns_handle,
|
| + int return_value_offset_from_rbp);
|
|
|
| // Before calling a C-function from generated code, align arguments on stack.
|
| // After aligning the frame, arguments must be stored in esp[0], esp[4],
|
|
|