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

Side by Side Diff: src/heap.cc

Issue 10855102: Fix compile failure on Win64 introduced in r12291. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 static_cast<int>(100 - (SizeOfObjects() * 100.0) / CommittedMemory())); 455 static_cast<int>(100 - (SizeOfObjects() * 100.0) / CommittedMemory()));
456 456
457 isolate_->counters()->heap_fraction_map_space()->AddSample( 457 isolate_->counters()->heap_fraction_map_space()->AddSample(
458 static_cast<int>( 458 static_cast<int>(
459 (map_space()->CommittedMemory() * 100.0) / CommittedMemory())); 459 (map_space()->CommittedMemory() * 100.0) / CommittedMemory()));
460 isolate_->counters()->heap_fraction_cell_space()->AddSample( 460 isolate_->counters()->heap_fraction_cell_space()->AddSample(
461 static_cast<int>( 461 static_cast<int>(
462 (cell_space()->CommittedMemory() * 100.0) / CommittedMemory())); 462 (cell_space()->CommittedMemory() * 100.0) / CommittedMemory()));
463 463
464 isolate_->counters()->heap_sample_total_committed()->AddSample( 464 isolate_->counters()->heap_sample_total_committed()->AddSample(
465 CommittedMemory() / KB); 465 static_cast<int>(CommittedMemory() / KB));
466 isolate_->counters()->heap_sample_total_used()->AddSample( 466 isolate_->counters()->heap_sample_total_used()->AddSample(
467 SizeOfObjects() / KB); 467 static_cast<int>(SizeOfObjects() / KB));
468 isolate_->counters()->heap_sample_map_space_committed()->AddSample( 468 isolate_->counters()->heap_sample_map_space_committed()->AddSample(
469 map_space()->CommittedMemory() / KB); 469 static_cast<int>(map_space()->CommittedMemory() / KB));
470 isolate_->counters()->heap_sample_cell_space_committed()->AddSample( 470 isolate_->counters()->heap_sample_cell_space_committed()->AddSample(
471 cell_space()->CommittedMemory() / KB); 471 static_cast<int>(cell_space()->CommittedMemory() / KB));
472 } 472 }
473 473
474 #define UPDATE_COUNTERS_FOR_SPACE(space) \ 474 #define UPDATE_COUNTERS_FOR_SPACE(space) \
475 isolate_->counters()->space##_bytes_available()->Set( \ 475 isolate_->counters()->space##_bytes_available()->Set( \
476 static_cast<int>(space()->Available())); \ 476 static_cast<int>(space()->Available())); \
477 isolate_->counters()->space##_bytes_committed()->Set( \ 477 isolate_->counters()->space##_bytes_committed()->Set( \
478 static_cast<int>(space()->CommittedMemory())); \ 478 static_cast<int>(space()->CommittedMemory())); \
479 isolate_->counters()->space##_bytes_used()->Set( \ 479 isolate_->counters()->space##_bytes_used()->Set( \
480 static_cast<int>(space()->SizeOfObjects())); 480 static_cast<int>(space()->SizeOfObjects()));
481 #define UPDATE_FRAGMENTATION_FOR_SPACE(space) \ 481 #define UPDATE_FRAGMENTATION_FOR_SPACE(space) \
(...skipping 6781 matching lines...) Expand 10 before | Expand all | Expand 10 after
7263 static_cast<int>(object_sizes_last_time_[index])); 7263 static_cast<int>(object_sizes_last_time_[index]));
7264 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7264 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7265 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7265 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7266 7266
7267 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7267 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7268 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7268 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7269 ClearObjectStats(); 7269 ClearObjectStats();
7270 } 7270 }
7271 7271
7272 } } // namespace v8::internal 7272 } } // 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