From 3a7e8fb791a43b920106c7b49b3069aceb070cdc Mon Sep 17 00:00:00 2001 From: "whesse@chromium.org" Date: Thu, 30 Jun 2011 13:08:13 +0000 Subject: [PATCH] Fix compilation on 64-bit Windows build. Review URL: http://codereview.chromium.org/7283043 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8491 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/deoptimizer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc index 7bbfa1815..8395a59c4 100644 --- a/src/deoptimizer.cc +++ b/src/deoptimizer.cc @@ -557,8 +557,8 @@ void Deoptimizer::MaterializeHeapNumbersForDebuggerInspectableFrame( Address slot = d.slot_address(); if (top <= slot && slot < top + size) { Handle num = isolate_->factory()->NewNumber(d.value()); - int expression_index = - info->expression_count_ - (slot - top) / kPointerSize - 1; + int expression_index = static_cast( + info->expression_count_ - (slot - top) / kPointerSize - 1); if (FLAG_trace_deopt) { PrintF("Materializing a new heap number %p [%e] in slot %p" "for expression stack index %d\n", @@ -1128,8 +1128,8 @@ unsigned FrameDescription::GetOffsetFromSlotIndex(Deoptimizer* deoptimizer, unsigned FrameDescription::GetExpressionCount(Deoptimizer* deoptimizer) { ASSERT_EQ(Code::FUNCTION, kind_); - return (GetFrameSize() - deoptimizer->ComputeFixedSize(GetFunction())) - / kPointerSize; + intptr_t size = GetFrameSize() - deoptimizer->ComputeFixedSize(GetFunction()); + return static_cast(size / kPointerSize); } -- 2.34.1