Revision: 8567
Author:   [email protected]
Date:     Thu Jul  7 12:27:48 2011
Log:      Try to fix Windows compilation error.

[email protected]

BUG=none
TEST=none

Review URL: http://codereview.chromium.org//7321008
http://code.google.com/p/v8/source/detail?r=8567

Modified:
 /branches/bleeding_edge/src/deoptimizer.cc
 /branches/bleeding_edge/src/deoptimizer.h

=======================================
--- /branches/bleeding_edge/src/deoptimizer.cc  Thu Jul  7 07:29:16 2011
+++ /branches/bleeding_edge/src/deoptimizer.cc  Thu Jul  7 12:27:48 2011
@@ -161,7 +161,7 @@
   // Get the "simulated" top and size for the requested frame.
   Address top =
reinterpret_cast<Address>(deoptimizer->output_[frame_index]->GetTop());
-  unsigned size = deoptimizer->output_[frame_index]->GetFrameSize();
+  uint32_t size = deoptimizer->output_[frame_index]->GetFrameSize();

// Done with the GC-unsafe frame descriptions. This re-enables allocation.
   deoptimizer->DeleteFrameDescriptions();
@@ -546,7 +546,7 @@

 #ifdef ENABLE_DEBUGGER_SUPPORT
 void Deoptimizer::MaterializeHeapNumbersForDebuggerInspectableFrame(
-    Address top, intptr_t size, DeoptimizedFrameInfo* info) {
+    Address top, uint32_t size, DeoptimizedFrameInfo* info) {
   ASSERT_EQ(DEBUGGER, bailout_type_);
   for (int i = 0; i < deferred_heap_numbers_.length(); i++) {
     HeapNumberMaterializationDescriptor d = deferred_heap_numbers_[i];
@@ -574,7 +574,9 @@
       } else {
         // Calculate parameter index subtracting one for the receiver.
         int parameter_index =
-            index + size / kPointerSize - info->expression_count_ - 1;
+            index +
+            static_cast<int>(size) / kPointerSize -
+            info->expression_count_ - 1;
         info->SetParameter(parameter_index, *num);
       }
     }
=======================================
--- /branches/bleeding_edge/src/deoptimizer.h   Thu Jul  7 07:29:16 2011
+++ /branches/bleeding_edge/src/deoptimizer.h   Thu Jul  7 12:27:48 2011
@@ -194,7 +194,7 @@
   void MaterializeHeapNumbers();
 #ifdef ENABLE_DEBUGGER_SUPPORT
   void MaterializeHeapNumbersForDebuggerInspectableFrame(
-      Address top, intptr_t size, DeoptimizedFrameInfo* info);
+      Address top, uint32_t size, DeoptimizedFrameInfo* info);
 #endif

   static void ComputeOutputFrames(Deoptimizer* deoptimizer);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to