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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 FLAG_gc_global = true; | 268 FLAG_gc_global = true; |
269 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 269 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
270 } | 270 } |
271 if (FLAG_trace_hydrogen) FLAG_parallel_recompilation = false; | 271 if (FLAG_trace_hydrogen) FLAG_parallel_recompilation = false; |
272 OS::SetUp(); | 272 OS::SetUp(); |
273 CPU::SetUp(); | 273 CPU::SetUp(); |
274 use_crankshaft_ = FLAG_crankshaft | 274 use_crankshaft_ = FLAG_crankshaft |
275 && !Serializer::enabled() | 275 && !Serializer::enabled() |
276 && CPU::SupportsCrankshaft(); | 276 && CPU::SupportsCrankshaft(); |
277 OS::PostSetUp(); | 277 OS::PostSetUp(); |
278 RuntimeProfiler::GlobalSetUp(); | |
279 ElementsAccessor::InitializeOncePerProcess(); | 278 ElementsAccessor::InitializeOncePerProcess(); |
280 LOperand::SetUpCaches(); | 279 LOperand::SetUpCaches(); |
281 SetUpJSCallerSavedCodeData(); | 280 SetUpJSCallerSavedCodeData(); |
282 SamplerRegistry::SetUp(); | 281 SamplerRegistry::SetUp(); |
283 ExternalReference::SetUp(); | 282 ExternalReference::SetUp(); |
284 } | 283 } |
285 | 284 |
286 void V8::InitializeOncePerProcess() { | 285 void V8::InitializeOncePerProcess() { |
287 CallOnce(&init_once, &InitializeOncePerProcessImpl); | 286 CallOnce(&init_once, &InitializeOncePerProcessImpl); |
288 } | 287 } |
289 | 288 |
290 } } // namespace v8::internal | 289 } } // namespace v8::internal |
OLD | NEW |