From d38a463d05163d4b881038d7f1d7f567640b2f38 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Fri, 19 Apr 2013 15:50:01 +0000 Subject: [PATCH] Fix build failures on Win64 since r14354. R=ulan@chromium.org Review URL: https://codereview.chromium.org/14246034 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14357 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index 1df5653acf..cd1af05d57 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -2433,7 +2433,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SuspendJSGeneratorObject) { intptr_t offset = frame->pc() - function->code()->instruction_start(); ASSERT(*function == generator_object->function()); ASSERT(offset > 0 && Smi::IsValid(offset)); - generator_object->set_continuation(offset); + generator_object->set_continuation(static_cast(offset)); // Generator functions force context allocation for locals, so Local0 points // to the bottom of the operand stack. Assume the stack grows down. @@ -2447,7 +2447,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SuspendJSGeneratorObject) { ASSERT(IsAligned(stack_size_in_bytes, kPointerSize)); ASSERT(stack_size_in_bytes >= 0); ASSERT(Smi::IsValid(stack_size_in_bytes)); - unsigned stack_size = stack_size_in_bytes >> kPointerSizeLog2; + intptr_t stack_size = stack_size_in_bytes >> kPointerSizeLog2; // We expect there to be at least two values on the stack: the return value of // the yield expression, and the argument to this runtime call. Neither of