| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 ElementsAccessor::TearDown(); | 48 ElementsAccessor::TearDown(); |
| 49 LOperand::TearDownCaches(); | 49 LOperand::TearDownCaches(); |
| 50 ExternalReference::TearDownMathExpData(); | 50 ExternalReference::TearDownMathExpData(); |
| 51 RegisteredExtension::UnregisterAll(); | 51 RegisteredExtension::UnregisterAll(); |
| 52 Isolate::GlobalTearDown(); | 52 Isolate::GlobalTearDown(); |
| 53 Sampler::TearDown(); | 53 Sampler::TearDown(); |
| 54 FlagList::ResetAllFlags(); // Frees memory held by string arguments. | 54 FlagList::ResetAllFlags(); // Frees memory held by string arguments. |
| 55 } | 55 } |
| 56 | 56 |
| 57 | 57 |
| 58 void V8::SetReturnAddressLocationResolver( | |
| 59 ReturnAddressLocationResolver resolver) { | |
| 60 StackFrame::SetReturnAddressLocationResolver(resolver); | |
| 61 } | |
| 62 | |
| 63 | |
| 64 void V8::InitializeOncePerProcessImpl() { | 58 void V8::InitializeOncePerProcessImpl() { |
| 65 FlagList::EnforceFlagImplications(); | 59 FlagList::EnforceFlagImplications(); |
| 66 | 60 |
| 67 if (FLAG_predictable && FLAG_random_seed == 0) { | 61 if (FLAG_predictable && FLAG_random_seed == 0) { |
| 68 // Avoid random seeds in predictable mode. | 62 // Avoid random seeds in predictable mode. |
| 69 FLAG_random_seed = 12347; | 63 FLAG_random_seed = 12347; |
| 70 } | 64 } |
| 71 | 65 |
| 72 if (FLAG_stress_compaction) { | 66 if (FLAG_stress_compaction) { |
| 73 FLAG_force_marking_deque_overflows = true; | 67 FLAG_force_marking_deque_overflows = true; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 130 |
| 137 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { | 131 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { |
| 138 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 132 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 139 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); | 133 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); |
| 140 #else | 134 #else |
| 141 CHECK(false); | 135 CHECK(false); |
| 142 #endif | 136 #endif |
| 143 } | 137 } |
| 144 } // namespace internal | 138 } // namespace internal |
| 145 } // namespace v8 | 139 } // namespace v8 |
| OLD | NEW |