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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 FLAG_force_marking_deque_overflows = true; | 88 FLAG_force_marking_deque_overflows = true; |
89 FLAG_gc_global = true; | 89 FLAG_gc_global = true; |
90 FLAG_max_semi_space_size = 1; | 90 FLAG_max_semi_space_size = 1; |
91 } | 91 } |
92 | 92 |
93 #ifdef V8_USE_DEFAULT_PLATFORM | 93 #ifdef V8_USE_DEFAULT_PLATFORM |
94 platform_ = new DefaultPlatform; | 94 platform_ = new DefaultPlatform; |
95 #endif | 95 #endif |
96 Sampler::SetUp(); | 96 Sampler::SetUp(); |
97 CpuFeatures::Probe(false); | 97 CpuFeatures::Probe(false); |
98 init_memcopy_functions(); | 98 OS::PostSetUp(); |
99 // The custom exp implementation needs 16KB of lookup data; initialize it | 99 // The custom exp implementation needs 16KB of lookup data; initialize it |
100 // on demand. | 100 // on demand. |
101 init_fast_sqrt_function(); | 101 init_fast_sqrt_function(); |
102 #ifdef _WIN64 | 102 #ifdef _WIN64 |
103 init_modulo_function(); | 103 init_modulo_function(); |
104 #endif | 104 #endif |
105 ElementsAccessor::InitializeOncePerProcess(); | 105 ElementsAccessor::InitializeOncePerProcess(); |
106 LOperand::SetUpCaches(); | 106 LOperand::SetUpCaches(); |
107 SetUpJSCallerSavedCodeData(); | 107 SetUpJSCallerSavedCodeData(); |
108 ExternalReference::SetUp(); | 108 ExternalReference::SetUp(); |
(...skipping 18 matching lines...) Expand all Loading... |
127 platform_ = NULL; | 127 platform_ = NULL; |
128 } | 128 } |
129 | 129 |
130 | 130 |
131 v8::Platform* V8::GetCurrentPlatform() { | 131 v8::Platform* V8::GetCurrentPlatform() { |
132 ASSERT(platform_); | 132 ASSERT(platform_); |
133 return platform_; | 133 return platform_; |
134 } | 134 } |
135 | 135 |
136 } } // namespace v8::internal | 136 } } // namespace v8::internal |
OLD | NEW |