OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "assembler.h" | 7 #include "assembler.h" |
8 #include "isolate.h" | 8 #include "isolate.h" |
9 #include "elements.h" | 9 #include "elements.h" |
10 #include "bootstrapper.h" | 10 #include "bootstrapper.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 Serializer::InitializeOncePerProcess(); | 92 Serializer::InitializeOncePerProcess(); |
93 | 93 |
94 if (FLAG_predictable && FLAG_random_seed == 0) { | 94 if (FLAG_predictable && FLAG_random_seed == 0) { |
95 // Avoid random seeds in predictable mode. | 95 // Avoid random seeds in predictable mode. |
96 FLAG_random_seed = 12347; | 96 FLAG_random_seed = 12347; |
97 } | 97 } |
98 | 98 |
99 if (FLAG_stress_compaction) { | 99 if (FLAG_stress_compaction) { |
100 FLAG_force_marking_deque_overflows = true; | 100 FLAG_force_marking_deque_overflows = true; |
101 FLAG_gc_global = true; | 101 FLAG_gc_global = true; |
102 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 102 FLAG_max_new_space_size = 2 * Page::kPageSize; |
103 } | 103 } |
104 | 104 |
105 #ifdef V8_USE_DEFAULT_PLATFORM | 105 #ifdef V8_USE_DEFAULT_PLATFORM |
106 platform_ = new DefaultPlatform; | 106 platform_ = new DefaultPlatform; |
107 #endif | 107 #endif |
108 Sampler::SetUp(); | 108 Sampler::SetUp(); |
109 // TODO(svenpanne) Clean this up when Serializer is a real object. | 109 // TODO(svenpanne) Clean this up when Serializer is a real object. |
110 bool serializer_enabled = Serializer::enabled(NULL); | 110 bool serializer_enabled = Serializer::enabled(NULL); |
111 CpuFeatures::Probe(serializer_enabled); | 111 CpuFeatures::Probe(serializer_enabled); |
112 OS::PostSetUp(); | 112 OS::PostSetUp(); |
(...skipping 22 matching lines...) Expand all Loading... |
135 platform_ = NULL; | 135 platform_ = NULL; |
136 } | 136 } |
137 | 137 |
138 | 138 |
139 v8::Platform* V8::GetCurrentPlatform() { | 139 v8::Platform* V8::GetCurrentPlatform() { |
140 ASSERT(platform_); | 140 ASSERT(platform_); |
141 return platform_; | 141 return platform_; |
142 } | 142 } |
143 | 143 |
144 } } // namespace v8::internal | 144 } } // namespace v8::internal |
OLD | NEW |