From 55599b395adf73ab79d2f4a2eb6968ac52002cbc Mon Sep 17 00:00:00 2001 From: "dcarney@chromium.org" Date: Fri, 14 Feb 2014 14:48:20 +0000 Subject: [PATCH] build fix for r19380 R=mstarzinger@chromium.org BUG= Review URL: https://codereview.chromium.org/166483004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19381 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ia32/code-stubs-ia32.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc index 9939c52..7882419 100644 --- a/src/ia32/code-stubs-ia32.cc +++ b/src/ia32/code-stubs-ia32.cc @@ -5406,8 +5406,12 @@ void CallApiFunctionStub::Generate(MacroAssembler* masm) { Operand context_restore_operand(ebp, (2 + FCA::kContextSaveIndex) * kPointerSize); // Stores return the first js argument - int return_value_offset = - 2 + (is_store ? FCA::kArgsLength : FCA::kReturnValueOffset); + int return_value_offset = 0; + if (is_store) { + return_value_offset = 2 + FCA::kArgsLength; + } else { + return_value_offset = 2 + FCA::kReturnValueOffset; + } Operand return_value_operand(ebp, return_value_offset * kPointerSize); __ CallApiFunctionAndReturn(api_function_address, thunk_address, -- 2.7.4