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 = 2 * Page::kPageSize; | 102 FLAG_max_semi_space_size = 1; |
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 28 matching lines...) Expand all Loading... |
141 platform_ = NULL; | 141 platform_ = NULL; |
142 } | 142 } |
143 | 143 |
144 | 144 |
145 v8::Platform* V8::GetCurrentPlatform() { | 145 v8::Platform* V8::GetCurrentPlatform() { |
146 ASSERT(platform_); | 146 ASSERT(platform_); |
147 return platform_; | 147 return platform_; |
148 } | 148 } |
149 | 149 |
150 } } // namespace v8::internal | 150 } } // namespace v8::internal |
OLD | NEW |