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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 void V8::TearDown() { | 47 void V8::TearDown() { |
48 Bootstrapper::TearDownExtensions(); | 48 Bootstrapper::TearDownExtensions(); |
49 ElementsAccessor::TearDown(); | 49 ElementsAccessor::TearDown(); |
50 LOperand::TearDownCaches(); | 50 LOperand::TearDownCaches(); |
51 compiler::Pipeline::TearDown(); | 51 compiler::Pipeline::TearDown(); |
52 ExternalReference::TearDownMathExpData(); | 52 ExternalReference::TearDownMathExpData(); |
53 RegisteredExtension::UnregisterAll(); | 53 RegisteredExtension::UnregisterAll(); |
54 Isolate::GlobalTearDown(); | 54 Isolate::GlobalTearDown(); |
55 | 55 |
56 Sampler::TearDown(); | 56 Sampler::TearDown(); |
| 57 FlagList::ResetAllFlags(); // Frees memory held by string arguments. |
57 } | 58 } |
58 | 59 |
59 | 60 |
60 void V8::SetReturnAddressLocationResolver( | 61 void V8::SetReturnAddressLocationResolver( |
61 ReturnAddressLocationResolver resolver) { | 62 ReturnAddressLocationResolver resolver) { |
62 StackFrame::SetReturnAddressLocationResolver(resolver); | 63 StackFrame::SetReturnAddressLocationResolver(resolver); |
63 } | 64 } |
64 | 65 |
65 | 66 |
66 void V8::InitializeOncePerProcessImpl() { | 67 void V8::InitializeOncePerProcessImpl() { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 platform_ = NULL; | 115 platform_ = NULL; |
115 } | 116 } |
116 | 117 |
117 | 118 |
118 v8::Platform* V8::GetCurrentPlatform() { | 119 v8::Platform* V8::GetCurrentPlatform() { |
119 DCHECK(platform_); | 120 DCHECK(platform_); |
120 return platform_; | 121 return platform_; |
121 } | 122 } |
122 | 123 |
123 } } // namespace v8::internal | 124 } } // namespace v8::internal |
OLD | NEW |