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

Side by Side Diff: src/heap.cc

Issue 126121: Make young space smaller on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int Heap::old_gen_promotion_limit_ = kMinimumPromotionLimit; 72 int Heap::old_gen_promotion_limit_ = kMinimumPromotionLimit;
73 int Heap::old_gen_allocation_limit_ = kMinimumAllocationLimit; 73 int Heap::old_gen_allocation_limit_ = kMinimumAllocationLimit;
74 74
75 int Heap::old_gen_exhausted_ = false; 75 int Heap::old_gen_exhausted_ = false;
76 76
77 int Heap::amount_of_external_allocated_memory_ = 0; 77 int Heap::amount_of_external_allocated_memory_ = 0;
78 int Heap::amount_of_external_allocated_memory_at_last_global_gc_ = 0; 78 int Heap::amount_of_external_allocated_memory_at_last_global_gc_ = 0;
79 79
80 // semispace_size_ should be a power of 2 and old_generation_size_ should be 80 // semispace_size_ should be a power of 2 and old_generation_size_ should be
81 // a multiple of Page::kPageSize. 81 // a multiple of Page::kPageSize.
82 #if V8_HOST_ARCH_ARM
83 int Heap::semispace_size_ = 512*KB;
84 int Heap::old_generation_size_ = 128*MB;
85 int Heap::initial_semispace_size_ = 128*KB;
86 #else
82 int Heap::semispace_size_ = 8*MB; 87 int Heap::semispace_size_ = 8*MB;
83 int Heap::old_generation_size_ = 512*MB; 88 int Heap::old_generation_size_ = 512*MB;
84 int Heap::initial_semispace_size_ = 512*KB; 89 int Heap::initial_semispace_size_ = 512*KB;
90 #endif
85 91
86 GCCallback Heap::global_gc_prologue_callback_ = NULL; 92 GCCallback Heap::global_gc_prologue_callback_ = NULL;
87 GCCallback Heap::global_gc_epilogue_callback_ = NULL; 93 GCCallback Heap::global_gc_epilogue_callback_ = NULL;
88 94
89 // Variables set based on semispace_size_ and old_generation_size_ in 95 // Variables set based on semispace_size_ and old_generation_size_ in
90 // ConfigureHeap. 96 // ConfigureHeap.
91 int Heap::young_generation_size_ = 0; // Will be 2 * semispace_size_. 97 int Heap::young_generation_size_ = 0; // Will be 2 * semispace_size_.
92 98
93 int Heap::survived_since_last_expansion_ = 0; 99 int Heap::survived_since_last_expansion_ = 0;
94 100
(...skipping 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after
3475 #ifdef DEBUG 3481 #ifdef DEBUG
3476 bool Heap::GarbageCollectionGreedyCheck() { 3482 bool Heap::GarbageCollectionGreedyCheck() {
3477 ASSERT(FLAG_gc_greedy); 3483 ASSERT(FLAG_gc_greedy);
3478 if (Bootstrapper::IsActive()) return true; 3484 if (Bootstrapper::IsActive()) return true;
3479 if (disallow_allocation_failure()) return true; 3485 if (disallow_allocation_failure()) return true;
3480 return CollectGarbage(0, NEW_SPACE); 3486 return CollectGarbage(0, NEW_SPACE);
3481 } 3487 }
3482 #endif 3488 #endif
3483 3489
3484 } } // namespace v8::internal 3490 } } // 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