From 65e4a0879373e44a92b45a949922d00d46345254 Mon Sep 17 00:00:00 2001 From: "ricow@chromium.org" Date: Thu, 24 Feb 2011 14:22:36 +0000 Subject: [PATCH] Fix compile failure from revision 6934 and win64 compile failure from revision 6931. Review URL: http://codereview.chromium.org/6576033 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6935 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 1 + src/x64/deoptimizer-x64.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime.cc b/src/runtime.cc index d40565c..74c1146 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -8274,6 +8274,7 @@ static void CollectElementIndices(Handle object, } default: UNREACHABLE(); + dense_elements_length = 0; break; } uint32_t length = static_cast(dense_elements_length); diff --git a/src/x64/deoptimizer-x64.cc b/src/x64/deoptimizer-x64.cc index 75b0376..6278142 100644 --- a/src/x64/deoptimizer-x64.cc +++ b/src/x64/deoptimizer-x64.cc @@ -304,7 +304,7 @@ void Deoptimizer::DoComputeOsrOutputFrame() { USE(height_in_bytes); unsigned fixed_size = ComputeFixedSize(function_); - unsigned input_frame_size = input_->GetFrameSize(); + unsigned input_frame_size = static_cast(input_->GetFrameSize()); ASSERT(fixed_size + height_in_bytes == input_frame_size); unsigned stack_slot_size = optimized_code_->stack_slots() * kPointerSize; -- 2.7.4