Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: src/spaces.cc

Issue 8508058: Fixing build error on Win64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 1933
1934 intptr_t FreeList::EvictFreeListItems(Page* p) { 1934 intptr_t FreeList::EvictFreeListItems(Page* p) {
1935 intptr_t sum = EvictFreeListItemsInList(&huge_list_, p); 1935 intptr_t sum = EvictFreeListItemsInList(&huge_list_, p);
1936 1936
1937 if (sum < Page::kObjectAreaSize) { 1937 if (sum < Page::kObjectAreaSize) {
1938 sum += EvictFreeListItemsInList(&small_list_, p) + 1938 sum += EvictFreeListItemsInList(&small_list_, p) +
1939 EvictFreeListItemsInList(&medium_list_, p) + 1939 EvictFreeListItemsInList(&medium_list_, p) +
1940 EvictFreeListItemsInList(&large_list_, p); 1940 EvictFreeListItemsInList(&large_list_, p);
1941 } 1941 }
1942 1942
1943 available_ -= sum; 1943 available_ -= static_cast<int>(sum);
1944 1944
1945 return sum; 1945 return sum;
1946 } 1946 }
1947 1947
1948 1948
1949 #ifdef DEBUG 1949 #ifdef DEBUG
1950 intptr_t FreeList::SumFreeList(FreeListNode* cur) { 1950 intptr_t FreeList::SumFreeList(FreeListNode* cur) {
1951 intptr_t sum = 0; 1951 intptr_t sum = 0;
1952 while (cur != NULL) { 1952 while (cur != NULL) {
1953 ASSERT(cur->map() == HEAP->raw_unchecked_free_space_map()); 1953 ASSERT(cur->map() == HEAP->raw_unchecked_free_space_map());
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 object->ShortPrint(); 2632 object->ShortPrint();
2633 PrintF("\n"); 2633 PrintF("\n");
2634 } 2634 }
2635 printf(" --------------------------------------\n"); 2635 printf(" --------------------------------------\n");
2636 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 2636 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
2637 } 2637 }
2638 2638
2639 #endif // DEBUG 2639 #endif // DEBUG
2640 2640
2641 } } // namespace v8::internal 2641 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698