| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Increase call depth to prevent recursive callbacks. | 180 // Increase call depth to prevent recursive callbacks. |
| 181 handle_scope_implementer->IncrementCallDepth(); | 181 handle_scope_implementer->IncrementCallDepth(); |
| 182 Execution::RunMicrotasks(isolate); | 182 Execution::RunMicrotasks(isolate); |
| 183 handle_scope_implementer->DecrementCallDepth(); | 183 handle_scope_implementer->DecrementCallDepth(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 | 186 |
| 187 void V8::InitializeOncePerProcessImpl() { | 187 void V8::InitializeOncePerProcessImpl() { |
| 188 FlagList::EnforceFlagImplications(); | 188 FlagList::EnforceFlagImplications(); |
| 189 | 189 |
| 190 if (FLAG_predictable) { | 190 if (FLAG_predictable && FLAG_random_seed == 0) { |
| 191 if (FLAG_random_seed == 0) { | 191 // Avoid random seeds in predictable mode. |
| 192 // Avoid random seeds in predictable mode. | 192 FLAG_random_seed = 12347; |
| 193 FLAG_random_seed = 12347; | |
| 194 } | |
| 195 FLAG_hash_seed = 0; | |
| 196 } | 193 } |
| 197 | 194 |
| 198 if (FLAG_stress_compaction) { | 195 if (FLAG_stress_compaction) { |
| 199 FLAG_force_marking_deque_overflows = true; | 196 FLAG_force_marking_deque_overflows = true; |
| 200 FLAG_gc_global = true; | 197 FLAG_gc_global = true; |
| 201 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 198 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
| 202 } | 199 } |
| 203 | 200 |
| 204 #ifdef V8_USE_DEFAULT_PLATFORM | 201 #ifdef V8_USE_DEFAULT_PLATFORM |
| 205 platform_ = new DefaultPlatform; | 202 platform_ = new DefaultPlatform; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 232 platform_ = NULL; | 229 platform_ = NULL; |
| 233 } | 230 } |
| 234 | 231 |
| 235 | 232 |
| 236 v8::Platform* V8::GetCurrentPlatform() { | 233 v8::Platform* V8::GetCurrentPlatform() { |
| 237 ASSERT(platform_); | 234 ASSERT(platform_); |
| 238 return platform_; | 235 return platform_; |
| 239 } | 236 } |
| 240 | 237 |
| 241 } } // namespace v8::internal | 238 } } // namespace v8::internal |
| OLD | NEW |