OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ElementsAccessor::TearDown(); | 91 ElementsAccessor::TearDown(); |
92 LOperand::TearDownCaches(); | 92 LOperand::TearDownCaches(); |
93 ExternalReference::TearDownMathExpData(); | 93 ExternalReference::TearDownMathExpData(); |
94 RegisteredExtension::UnregisterAll(); | 94 RegisteredExtension::UnregisterAll(); |
95 Isolate::GlobalTearDown(); | 95 Isolate::GlobalTearDown(); |
96 | 96 |
97 delete call_completed_callbacks_; | 97 delete call_completed_callbacks_; |
98 call_completed_callbacks_ = NULL; | 98 call_completed_callbacks_ = NULL; |
99 | 99 |
100 Sampler::TearDown(); | 100 Sampler::TearDown(); |
| 101 Serializer::TearDown(); |
101 | 102 |
102 #ifdef V8_USE_DEFAULT_PLATFORM | 103 #ifdef V8_USE_DEFAULT_PLATFORM |
103 DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_); | 104 DefaultPlatform* platform = static_cast<DefaultPlatform*>(platform_); |
104 platform_ = NULL; | 105 platform_ = NULL; |
105 delete platform; | 106 delete platform; |
106 #endif | 107 #endif |
107 } | 108 } |
108 | 109 |
109 | 110 |
110 void V8::SetReturnAddressLocationResolver( | 111 void V8::SetReturnAddressLocationResolver( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 // Increase call depth to prevent recursive callbacks. | 167 // Increase call depth to prevent recursive callbacks. |
167 handle_scope_implementer->IncrementCallDepth(); | 168 handle_scope_implementer->IncrementCallDepth(); |
168 Execution::RunMicrotasks(isolate); | 169 Execution::RunMicrotasks(isolate); |
169 handle_scope_implementer->DecrementCallDepth(); | 170 handle_scope_implementer->DecrementCallDepth(); |
170 } | 171 } |
171 | 172 |
172 | 173 |
173 void V8::InitializeOncePerProcessImpl() { | 174 void V8::InitializeOncePerProcessImpl() { |
174 FlagList::EnforceFlagImplications(); | 175 FlagList::EnforceFlagImplications(); |
| 176 Serializer::InitializeOncePerProcess(); |
175 | 177 |
176 if (FLAG_predictable && FLAG_random_seed == 0) { | 178 if (FLAG_predictable && FLAG_random_seed == 0) { |
177 // Avoid random seeds in predictable mode. | 179 // Avoid random seeds in predictable mode. |
178 FLAG_random_seed = 12347; | 180 FLAG_random_seed = 12347; |
179 } | 181 } |
180 | 182 |
181 if (FLAG_stress_compaction) { | 183 if (FLAG_stress_compaction) { |
182 FLAG_force_marking_deque_overflows = true; | 184 FLAG_force_marking_deque_overflows = true; |
183 FLAG_gc_global = true; | 185 FLAG_gc_global = true; |
184 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 186 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
(...skipping 30 matching lines...) Expand all Loading... |
215 platform_ = NULL; | 217 platform_ = NULL; |
216 } | 218 } |
217 | 219 |
218 | 220 |
219 v8::Platform* V8::GetCurrentPlatform() { | 221 v8::Platform* V8::GetCurrentPlatform() { |
220 ASSERT(platform_); | 222 ASSERT(platform_); |
221 return platform_; | 223 return platform_; |
222 } | 224 } |
223 | 225 |
224 } } // namespace v8::internal | 226 } } // namespace v8::internal |
OLD | NEW |