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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); |
| 113 // The custom exp implementation needs 16KB of lookup data; initialize it |
| 114 // on demand. |
| 115 init_fast_sqrt_function(); |
| 116 #ifdef _WIN64 |
| 117 init_modulo_function(); |
| 118 #endif |
113 ElementsAccessor::InitializeOncePerProcess(); | 119 ElementsAccessor::InitializeOncePerProcess(); |
114 LOperand::SetUpCaches(); | 120 LOperand::SetUpCaches(); |
115 SetUpJSCallerSavedCodeData(); | 121 SetUpJSCallerSavedCodeData(); |
116 ExternalReference::SetUp(); | 122 ExternalReference::SetUp(); |
117 Bootstrapper::InitializeOncePerProcess(); | 123 Bootstrapper::InitializeOncePerProcess(); |
118 } | 124 } |
119 | 125 |
120 | 126 |
121 void V8::InitializeOncePerProcess() { | 127 void V8::InitializeOncePerProcess() { |
122 CallOnce(&init_once, &InitializeOncePerProcessImpl); | 128 CallOnce(&init_once, &InitializeOncePerProcessImpl); |
(...skipping 12 matching lines...) Expand all Loading... |
135 platform_ = NULL; | 141 platform_ = NULL; |
136 } | 142 } |
137 | 143 |
138 | 144 |
139 v8::Platform* V8::GetCurrentPlatform() { | 145 v8::Platform* V8::GetCurrentPlatform() { |
140 ASSERT(platform_); | 146 ASSERT(platform_); |
141 return platform_; | 147 return platform_; |
142 } | 148 } |
143 | 149 |
144 } } // namespace v8::internal | 150 } } // namespace v8::internal |
OLD | NEW |