Commit 3a7e8fb7 authored by whesse@chromium.org's avatar whesse@chromium.org

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
parent 03df9dd5
......@@ -557,8 +557,8 @@ void Deoptimizer::MaterializeHeapNumbersForDebuggerInspectableFrame(
Address slot = d.slot_address();
if (top <= slot && slot < top + size) {
Handle<Object> num = isolate_->factory()->NewNumber(d.value());
int expression_index =
info->expression_count_ - (slot - top) / kPointerSize - 1;
int expression_index = static_cast<int>(
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<unsigned>(size / kPointerSize);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment