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

Side by Side Diff: src/spaces.cc

Issue 9293032: Fix compile error on Mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 months 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 memory_allocator_reserved_ = 0; 277 memory_allocator_reserved_ = 0;
278 size_executable_ = 0; 278 size_executable_ = 0;
279 279
280 return true; 280 return true;
281 } 281 }
282 282
283 283
284 void MemoryAllocator::TearDown() { 284 void MemoryAllocator::TearDown() {
285 // Check that spaces were torn down before MemoryAllocator. 285 // Check that spaces were torn down before MemoryAllocator.
286 CHECK_EQ(memory_allocator_reserved_, static_cast<intptr_t>(0)); 286 CHECK_EQ(memory_allocator_reserved_, static_cast<size_t>(0));
287 // TODO(gc) this will be true again when we fix FreeMemory. 287 // TODO(gc) this will be true again when we fix FreeMemory.
288 // ASSERT(size_executable_ == 0); 288 // ASSERT(size_executable_ == 0);
289 capacity_ = 0; 289 capacity_ = 0;
290 capacity_executable_ = 0; 290 capacity_executable_ = 0;
291 } 291 }
292 292
293 293
294 void MemoryAllocator::FreeMemory(VirtualMemory* reservation, 294 void MemoryAllocator::FreeMemory(VirtualMemory* reservation,
295 Executability executable) { 295 Executability executable) {
296 // TODO(gc) make code_range part of memory allocator? 296 // TODO(gc) make code_range part of memory allocator?
(...skipping 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2853 object->ShortPrint(); 2853 object->ShortPrint();
2854 PrintF("\n"); 2854 PrintF("\n");
2855 } 2855 }
2856 printf(" --------------------------------------\n"); 2856 printf(" --------------------------------------\n");
2857 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 2857 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
2858 } 2858 }
2859 2859
2860 #endif // DEBUG 2860 #endif // DEBUG
2861 2861
2862 } } // namespace v8::internal 2862 } } // 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