OLD | NEW |
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 for (int i = 0; i < call_completed_callbacks_->length(); i++) { | 155 for (int i = 0; i < call_completed_callbacks_->length(); i++) { |
156 call_completed_callbacks_->at(i)(); | 156 call_completed_callbacks_->at(i)(); |
157 } | 157 } |
158 } | 158 } |
159 handle_scope_implementer->DecrementCallDepth(); | 159 handle_scope_implementer->DecrementCallDepth(); |
160 } | 160 } |
161 | 161 |
162 | 162 |
163 void V8::InitializeOncePerProcessImpl() { | 163 void V8::InitializeOncePerProcessImpl() { |
164 FlagList::EnforceFlagImplications(); | 164 FlagList::EnforceFlagImplications(); |
| 165 |
| 166 if (FLAG_predictable) { |
| 167 if (FLAG_random_seed == 0) { |
| 168 // Avoid random seeds in predictable mode. |
| 169 FLAG_random_seed = 12347; |
| 170 } |
| 171 FLAG_hash_seed = 0; |
| 172 } |
| 173 |
165 if (FLAG_stress_compaction) { | 174 if (FLAG_stress_compaction) { |
166 FLAG_force_marking_deque_overflows = true; | 175 FLAG_force_marking_deque_overflows = true; |
167 FLAG_gc_global = true; | 176 FLAG_gc_global = true; |
168 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 177 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
169 } | 178 } |
170 | 179 |
171 #ifdef V8_USE_DEFAULT_PLATFORM | 180 #ifdef V8_USE_DEFAULT_PLATFORM |
172 platform_ = new DefaultPlatform; | 181 platform_ = new DefaultPlatform; |
173 #endif | 182 #endif |
174 Sampler::SetUp(); | 183 Sampler::SetUp(); |
(...skipping 24 matching lines...) Expand all Loading... |
199 platform_ = NULL; | 208 platform_ = NULL; |
200 } | 209 } |
201 | 210 |
202 | 211 |
203 v8::Platform* V8::GetCurrentPlatform() { | 212 v8::Platform* V8::GetCurrentPlatform() { |
204 ASSERT(platform_); | 213 ASSERT(platform_); |
205 return platform_; | 214 return platform_; |
206 } | 215 } |
207 | 216 |
208 } } // namespace v8::internal | 217 } } // namespace v8::internal |
OLD | NEW |