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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 117 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
118 } | 118 } |
119 | 119 |
120 #ifdef V8_USE_DEFAULT_PLATFORM | 120 #ifdef V8_USE_DEFAULT_PLATFORM |
121 platform_ = new DefaultPlatform; | 121 platform_ = new DefaultPlatform; |
122 #endif | 122 #endif |
123 Sampler::SetUp(); | 123 Sampler::SetUp(); |
124 // TODO(svenpanne) Clean this up when Serializer is a real object. | 124 // TODO(svenpanne) Clean this up when Serializer is a real object. |
125 bool serializer_enabled = Serializer::enabled(NULL); | 125 bool serializer_enabled = Serializer::enabled(NULL); |
126 CpuFeatures::Probe(serializer_enabled); | 126 CpuFeatures::Probe(serializer_enabled); |
127 OS::PostSetUp(serializer_enabled); | 127 OS::PostSetUp(); |
128 ElementsAccessor::InitializeOncePerProcess(); | 128 ElementsAccessor::InitializeOncePerProcess(); |
129 LOperand::SetUpCaches(); | 129 LOperand::SetUpCaches(); |
130 SetUpJSCallerSavedCodeData(); | 130 SetUpJSCallerSavedCodeData(); |
131 ExternalReference::SetUp(); | 131 ExternalReference::SetUp(); |
132 Bootstrapper::InitializeOncePerProcess(); | 132 Bootstrapper::InitializeOncePerProcess(); |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 void V8::InitializeOncePerProcess() { | 136 void V8::InitializeOncePerProcess() { |
137 CallOnce(&init_once, &InitializeOncePerProcessImpl); | 137 CallOnce(&init_once, &InitializeOncePerProcessImpl); |
(...skipping 12 matching lines...) Expand all Loading... |
150 platform_ = NULL; | 150 platform_ = NULL; |
151 } | 151 } |
152 | 152 |
153 | 153 |
154 v8::Platform* V8::GetCurrentPlatform() { | 154 v8::Platform* V8::GetCurrentPlatform() { |
155 ASSERT(platform_); | 155 ASSERT(platform_); |
156 return platform_; | 156 return platform_; |
157 } | 157 } |
158 | 158 |
159 } } // namespace v8::internal | 159 } } // namespace v8::internal |
OLD | NEW |