| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Avoid random seeds in predictable mode. | 70 // Avoid random seeds in predictable mode. |
| 71 FLAG_random_seed = 12347; | 71 FLAG_random_seed = 12347; |
| 72 } | 72 } |
| 73 | 73 |
| 74 if (FLAG_stress_compaction) { | 74 if (FLAG_stress_compaction) { |
| 75 FLAG_force_marking_deque_overflows = true; | 75 FLAG_force_marking_deque_overflows = true; |
| 76 FLAG_gc_global = true; | 76 FLAG_gc_global = true; |
| 77 FLAG_max_semi_space_size = 1; | 77 FLAG_max_semi_space_size = 1; |
| 78 } | 78 } |
| 79 | 79 |
| 80 if (FLAG_turbo && strcmp(FLAG_turbo_filter, "~~") == 0) { |
| 81 const char* filter_flag = "--turbo-filter=*"; |
| 82 FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); |
| 83 } |
| 84 |
| 80 base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); | 85 base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); |
| 81 | 86 |
| 82 Isolate::InitializeOncePerProcess(); | 87 Isolate::InitializeOncePerProcess(); |
| 83 | 88 |
| 84 Sampler::SetUp(); | 89 Sampler::SetUp(); |
| 85 CpuFeatures::Probe(false); | 90 CpuFeatures::Probe(false); |
| 86 init_memcopy_functions(); | 91 init_memcopy_functions(); |
| 87 // The custom exp implementation needs 16KB of lookup data; initialize it | 92 // The custom exp implementation needs 16KB of lookup data; initialize it |
| 88 // on demand. | 93 // on demand. |
| 89 init_fast_sqrt_function(); | 94 init_fast_sqrt_function(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 137 |
| 133 | 138 |
| 134 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { | 139 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { |
| 135 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 140 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 136 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); | 141 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); |
| 137 #else | 142 #else |
| 138 CHECK(false); | 143 CHECK(false); |
| 139 #endif | 144 #endif |
| 140 } | 145 } |
| 141 } } // namespace v8::internal | 146 } } // namespace v8::internal |
| OLD | NEW |