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

Side by Side Diff: runtime/vm/pages.cc

Issue 10871096: Fix a build break caused by a type mismatch on 64-bit build targets. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/pages.h" 5 #include "vm/pages.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/gc_marker.h" 8 #include "vm/gc_marker.h"
9 #include "vm/gc_sweeper.h" 9 #include "vm/gc_sweeper.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 garbage_collection_time_fraction, 525 garbage_collection_time_fraction,
526 garbage_collection_time_ratio_); 526 garbage_collection_time_ratio_);
527 } 527 }
528 OS::PrintErr("\n"); 528 OS::PrintErr("\n");
529 } 529 }
530 if (!enough_free_space) { 530 if (!enough_free_space) {
531 intptr_t growth_target = static_cast<intptr_t>(in_use_after / 531 intptr_t growth_target = static_cast<intptr_t>(in_use_after /
532 desired_utilization_); 532 desired_utilization_);
533 intptr_t growth_in_bytes = Utils::RoundUp(growth_target - in_use_after, 533 intptr_t growth_in_bytes = Utils::RoundUp(growth_target - in_use_after,
534 PageSpace::kPageSize); 534 PageSpace::kPageSize);
535 intptr_t growth_in_pages = growth_in_bytes / PageSpace::kPageSize; 535 int growth_in_pages = growth_in_bytes / PageSpace::kPageSize;
536 grow_heap_ = Utils::Maximum(growth_in_pages, heap_growth_rate_); 536 grow_heap_ = Utils::Maximum(growth_in_pages, heap_growth_rate_);
537 } else { 537 } else {
538 grow_heap_ = heap_growth_rate_; 538 grow_heap_ = heap_growth_rate_;
539 } 539 }
540 } 540 }
541 } 541 }
542 542
543 543
544 PageSpaceGarbageCollectionHistory::PageSpaceGarbageCollectionHistory() 544 PageSpaceGarbageCollectionHistory::PageSpaceGarbageCollectionHistory()
545 : index_(0) { 545 : index_(0) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 return 0; 578 return 0;
579 } else { 579 } else {
580 ASSERT(total_time >= gc_time); 580 ASSERT(total_time >= gc_time);
581 int result= static_cast<int>((static_cast<double>(gc_time) / 581 int result= static_cast<int>((static_cast<double>(gc_time) /
582 static_cast<double>(total_time)) * 100); 582 static_cast<double>(total_time)) * 100);
583 return result; 583 return result;
584 } 584 }
585 } 585 }
586 586
587 } // namespace dart 587 } // namespace dart
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