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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/once.h" | 8 #include "src/base/once.h" |
9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); | 73 FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); |
74 } | 74 } |
75 | 75 |
76 base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); | 76 base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); |
77 | 77 |
78 Isolate::InitializeOncePerProcess(); | 78 Isolate::InitializeOncePerProcess(); |
79 | 79 |
80 Sampler::SetUp(); | 80 Sampler::SetUp(); |
81 CpuFeatures::Probe(false); | 81 CpuFeatures::Probe(false); |
82 init_memcopy_functions(); | 82 init_memcopy_functions(); |
83 // The custom exp implementation needs 16KB of lookup data; initialize it | |
84 // on demand. | |
85 init_fast_sqrt_function(); | |
86 #ifdef _WIN64 | 83 #ifdef _WIN64 |
87 init_modulo_function(); | 84 init_modulo_function(); |
88 #endif | 85 #endif |
89 ElementsAccessor::InitializeOncePerProcess(); | 86 ElementsAccessor::InitializeOncePerProcess(); |
90 LOperand::SetUpCaches(); | 87 LOperand::SetUpCaches(); |
91 SetUpJSCallerSavedCodeData(); | 88 SetUpJSCallerSavedCodeData(); |
92 ExternalReference::SetUp(); | 89 ExternalReference::SetUp(); |
93 Bootstrapper::InitializeOncePerProcess(); | 90 Bootstrapper::InitializeOncePerProcess(); |
94 } | 91 } |
95 | 92 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 129 |
133 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { | 130 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { |
134 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 131 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
135 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); | 132 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); |
136 #else | 133 #else |
137 CHECK(false); | 134 CHECK(false); |
138 #endif | 135 #endif |
139 } | 136 } |
140 } // namespace internal | 137 } // namespace internal |
141 } // namespace v8 | 138 } // namespace v8 |
OLD | NEW |