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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 void V8::TearDown() { | 55 void V8::TearDown() { |
56 Bootstrapper::TearDownExtensions(); | 56 Bootstrapper::TearDownExtensions(); |
57 ElementsAccessor::TearDown(); | 57 ElementsAccessor::TearDown(); |
58 LOperand::TearDownCaches(); | 58 LOperand::TearDownCaches(); |
59 ExternalReference::TearDownMathExpData(); | 59 ExternalReference::TearDownMathExpData(); |
60 RegisteredExtension::UnregisterAll(); | 60 RegisteredExtension::UnregisterAll(); |
61 Isolate::GlobalTearDown(); | 61 Isolate::GlobalTearDown(); |
62 | 62 |
63 Sampler::TearDown(); | 63 Sampler::TearDown(); |
64 Serializer::TearDown(); | |
65 | 64 |
66 #ifdef V8_USE_DEFAULT_PLATFORM | 65 #ifdef V8_USE_DEFAULT_PLATFORM |
67 DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_); | 66 DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_); |
68 platform_ = NULL; | 67 platform_ = NULL; |
69 delete platform; | 68 delete platform; |
70 #endif | 69 #endif |
71 } | 70 } |
72 | 71 |
73 | 72 |
74 void V8::SetReturnAddressLocationResolver( | 73 void V8::SetReturnAddressLocationResolver( |
75 ReturnAddressLocationResolver resolver) { | 74 ReturnAddressLocationResolver resolver) { |
76 StackFrame::SetReturnAddressLocationResolver(resolver); | 75 StackFrame::SetReturnAddressLocationResolver(resolver); |
77 } | 76 } |
78 | 77 |
79 | 78 |
80 void V8::InitializeOncePerProcessImpl() { | 79 void V8::InitializeOncePerProcessImpl() { |
81 FlagList::EnforceFlagImplications(); | 80 FlagList::EnforceFlagImplications(); |
82 Serializer::InitializeOncePerProcess(); | |
83 | 81 |
84 if (FLAG_predictable && FLAG_random_seed == 0) { | 82 if (FLAG_predictable && FLAG_random_seed == 0) { |
85 // Avoid random seeds in predictable mode. | 83 // Avoid random seeds in predictable mode. |
86 FLAG_random_seed = 12347; | 84 FLAG_random_seed = 12347; |
87 } | 85 } |
88 | 86 |
89 if (FLAG_stress_compaction) { | 87 if (FLAG_stress_compaction) { |
90 FLAG_force_marking_deque_overflows = true; | 88 FLAG_force_marking_deque_overflows = true; |
91 FLAG_gc_global = true; | 89 FLAG_gc_global = true; |
92 FLAG_max_semi_space_size = 1; | 90 FLAG_max_semi_space_size = 1; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 platform_ = NULL; | 127 platform_ = NULL; |
130 } | 128 } |
131 | 129 |
132 | 130 |
133 v8::Platform* V8::GetCurrentPlatform() { | 131 v8::Platform* V8::GetCurrentPlatform() { |
134 ASSERT(platform_); | 132 ASSERT(platform_); |
135 return platform_; | 133 return platform_; |
136 } | 134 } |
137 | 135 |
138 } } // namespace v8::internal | 136 } } // namespace v8::internal |
OLD | NEW |