Fix build failures on Win64 since r14215.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 11 Apr 2013 08:08:09 +0000 (08:08 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 11 Apr 2013 08:08:09 +0000 (08:08 +0000)
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/14075006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14221 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/global-handles.cc
src/heap-snapshot-generator.cc

index 48d752b..8058f35 100644 (file)
@@ -588,7 +588,7 @@ bool GlobalHandles::IterateObjectGroups(ObjectVisitor* v,
   int surviving_info_index = 0;
 
   UniqueId current_group_id(0);
-  size_t current_group_start = 0;
+  int current_group_start = 0;
   bool any_group_was_visited = false;
 
   for (int i = 0; i <= object_groups_.length(); ++i) {
index 4bc3fe1..cfa2ad3 100644 (file)
@@ -1948,9 +1948,9 @@ void NativeObjectsExplorer::FillRetainedObjects() {
   groups->Sort();
   infos->Sort();
 
-  int info_ix = 0;
+  int info_index = 0;
   UniqueId current_group_id(0);
-  size_t current_group_start = 0;
+  int current_group_start = 0;
 
   if (groups->length() > 0) {
     for (int i = 0; i <= groups->length(); ++i) {
@@ -1959,12 +1959,12 @@ void NativeObjectsExplorer::FillRetainedObjects() {
       if (i == groups->length() ||
           current_group_id != groups->at(i).id) {
         // Group detected: objects in indices [current_group_start, i[.
-        if (info_ix < infos->length() &&
-            infos->at(info_ix).id == groups->at(current_group_start).id) {
+        if (info_index < infos->length() &&
+            infos->at(info_index).id == groups->at(current_group_start).id) {
           // Transfer the ownership of info.
           List<HeapObject*>* list =
-              GetListMaybeDisposeInfo(infos->at(info_ix).info);
-          infos->at(info_ix).info = NULL;
+              GetListMaybeDisposeInfo(infos->at(info_index).info);
+          infos->at(info_index).info = NULL;
           for (int j = current_group_start; j < i; ++j) {
             HeapObject* obj = HeapObject::cast(*(groups->at(j).object));
             list->Add(obj);