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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 if (FLAG_stress_compaction) { | 137 if (FLAG_stress_compaction) { |
138 FLAG_force_marking_deque_overflows = true; | 138 FLAG_force_marking_deque_overflows = true; |
139 FLAG_gc_global = true; | 139 FLAG_gc_global = true; |
140 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 140 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
141 } | 141 } |
142 | 142 |
143 #ifdef V8_USE_DEFAULT_PLATFORM | 143 #ifdef V8_USE_DEFAULT_PLATFORM |
144 platform_ = new DefaultPlatform; | 144 platform_ = new DefaultPlatform; |
145 #endif | 145 #endif |
146 Sampler::SetUp(); | 146 Sampler::SetUp(); |
147 CPU::SetUp(); | 147 CpuFeatures::Probe(Serializer::enabled()); |
148 OS::PostSetUp(); | 148 OS::PostSetUp(); |
149 ElementsAccessor::InitializeOncePerProcess(); | 149 ElementsAccessor::InitializeOncePerProcess(); |
150 LOperand::SetUpCaches(); | 150 LOperand::SetUpCaches(); |
151 SetUpJSCallerSavedCodeData(); | 151 SetUpJSCallerSavedCodeData(); |
152 ExternalReference::SetUp(); | 152 ExternalReference::SetUp(); |
153 Bootstrapper::InitializeOncePerProcess(); | 153 Bootstrapper::InitializeOncePerProcess(); |
154 } | 154 } |
155 | 155 |
156 | 156 |
157 void V8::InitializeOncePerProcess() { | 157 void V8::InitializeOncePerProcess() { |
(...skipping 13 matching lines...) Expand all Loading... |
171 platform_ = NULL; | 171 platform_ = NULL; |
172 } | 172 } |
173 | 173 |
174 | 174 |
175 v8::Platform* V8::GetCurrentPlatform() { | 175 v8::Platform* V8::GetCurrentPlatform() { |
176 ASSERT(platform_); | 176 ASSERT(platform_); |
177 return platform_; | 177 return platform_; |
178 } | 178 } |
179 | 179 |
180 } } // namespace v8::internal | 180 } } // namespace v8::internal |
OLD | NEW |