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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 Isolate* isolate = Isolate::Current(); | 92 Isolate* isolate = Isolate::Current(); |
93 ASSERT(isolate->IsDefaultIsolate()); | 93 ASSERT(isolate->IsDefaultIsolate()); |
94 if (!isolate->IsInitialized()) return; | 94 if (!isolate->IsInitialized()) return; |
95 | 95 |
96 // The isolate has to be torn down before clearing the LOperand | 96 // The isolate has to be torn down before clearing the LOperand |
97 // caches so that the optimizing compiler thread (if running) | 97 // caches so that the optimizing compiler thread (if running) |
98 // doesn't see an inconsistent view of the lithium instructions. | 98 // doesn't see an inconsistent view of the lithium instructions. |
99 isolate->TearDown(); | 99 isolate->TearDown(); |
100 delete isolate; | 100 delete isolate; |
101 | 101 |
| 102 Bootstrapper::TearDownExtensions(); |
102 ElementsAccessor::TearDown(); | 103 ElementsAccessor::TearDown(); |
103 LOperand::TearDownCaches(); | 104 LOperand::TearDownCaches(); |
104 ExternalReference::TearDownMathExpData(); | 105 ExternalReference::TearDownMathExpData(); |
105 RegisteredExtension::UnregisterAll(); | 106 RegisteredExtension::UnregisterAll(); |
106 Isolate::GlobalTearDown(); | 107 Isolate::GlobalTearDown(); |
107 | 108 |
108 delete call_completed_callbacks_; | 109 delete call_completed_callbacks_; |
109 call_completed_callbacks_ = NULL; | 110 call_completed_callbacks_ = NULL; |
110 | 111 |
111 Sampler::TearDown(); | 112 Sampler::TearDown(); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 platform_ = NULL; | 214 platform_ = NULL; |
214 } | 215 } |
215 | 216 |
216 | 217 |
217 v8::Platform* V8::GetCurrentPlatform() { | 218 v8::Platform* V8::GetCurrentPlatform() { |
218 ASSERT(platform_); | 219 ASSERT(platform_); |
219 return platform_; | 220 return platform_; |
220 } | 221 } |
221 | 222 |
222 } } // namespace v8::internal | 223 } } // namespace v8::internal |
OLD | NEW |