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

Side by Side Diff: src/heap.cc

Issue 18447003: MIPS: Adjust default Heap sizes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed nit. Created 7 years, 5 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 : isolate_(NULL), 67 : isolate_(NULL),
68 // semispace_size_ should be a power of 2 and old_generation_size_ should be 68 // semispace_size_ should be a power of 2 and old_generation_size_ should be
69 // a multiple of Page::kPageSize. 69 // a multiple of Page::kPageSize.
70 #if V8_TARGET_ARCH_X64 70 #if V8_TARGET_ARCH_X64
71 #define LUMP_OF_MEMORY (2 * MB) 71 #define LUMP_OF_MEMORY (2 * MB)
72 code_range_size_(512*MB), 72 code_range_size_(512*MB),
73 #else 73 #else
74 #define LUMP_OF_MEMORY MB 74 #define LUMP_OF_MEMORY MB
75 code_range_size_(0), 75 code_range_size_(0),
76 #endif 76 #endif
77 #if defined(ANDROID) 77 #if defined(ANDROID) || V8_TARGET_ARCH_MIPS
78 reserved_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), 78 reserved_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)),
79 max_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), 79 max_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)),
80 initial_semispace_size_(Page::kPageSize), 80 initial_semispace_size_(Page::kPageSize),
81 max_old_generation_size_(192*MB), 81 max_old_generation_size_(192*MB),
82 max_executable_size_(max_old_generation_size_), 82 max_executable_size_(max_old_generation_size_),
83 #else 83 #else
84 reserved_semispace_size_(8 * Max(LUMP_OF_MEMORY, Page::kPageSize)), 84 reserved_semispace_size_(8 * Max(LUMP_OF_MEMORY, Page::kPageSize)),
85 max_semispace_size_(8 * Max(LUMP_OF_MEMORY, Page::kPageSize)), 85 max_semispace_size_(8 * Max(LUMP_OF_MEMORY, Page::kPageSize)),
86 initial_semispace_size_(Page::kPageSize), 86 initial_semispace_size_(Page::kPageSize),
87 max_old_generation_size_(700ul * LUMP_OF_MEMORY), 87 max_old_generation_size_(700ul * LUMP_OF_MEMORY),
(...skipping 8048 matching lines...) Expand 10 before | Expand all | Expand 10 after
8136 if (FLAG_parallel_recompilation) { 8136 if (FLAG_parallel_recompilation) {
8137 heap_->relocation_mutex_->Lock(); 8137 heap_->relocation_mutex_->Lock();
8138 #ifdef DEBUG 8138 #ifdef DEBUG
8139 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8139 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8140 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8140 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8141 #endif // DEBUG 8141 #endif // DEBUG
8142 } 8142 }
8143 } 8143 }
8144 8144
8145 } } // namespace v8::internal 8145 } } // 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