| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // The isolate has to be torn down before clearing the LOperand | 108 // The isolate has to be torn down before clearing the LOperand |
| 109 // caches so that the optimizing compiler thread (if running) | 109 // caches so that the optimizing compiler thread (if running) |
| 110 // doesn't see an inconsistent view of the lithium instructions. | 110 // doesn't see an inconsistent view of the lithium instructions. |
| 111 isolate->TearDown(); | 111 isolate->TearDown(); |
| 112 delete isolate; | 112 delete isolate; |
| 113 | 113 |
| 114 ElementsAccessor::TearDown(); | 114 ElementsAccessor::TearDown(); |
| 115 LOperand::TearDownCaches(); | 115 LOperand::TearDownCaches(); |
| 116 ExternalReference::TearDownMathExpData(); | 116 ExternalReference::TearDownMathExpData(); |
| 117 RegisteredExtension::UnregisterAll(); | 117 RegisteredExtension::UnregisterAll(); |
| 118 Isolate::GlobalTearDown(); |
| 118 | 119 |
| 119 is_running_ = false; | 120 is_running_ = false; |
| 120 has_been_disposed_ = true; | 121 has_been_disposed_ = true; |
| 121 | 122 |
| 122 delete call_completed_callbacks_; | 123 delete call_completed_callbacks_; |
| 123 call_completed_callbacks_ = NULL; | 124 call_completed_callbacks_ = NULL; |
| 124 | 125 |
| 125 OS::TearDown(); | 126 OS::TearDown(); |
| 126 } | 127 } |
| 127 | 128 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 SetUpJSCallerSavedCodeData(); | 280 SetUpJSCallerSavedCodeData(); |
| 280 SamplerRegistry::SetUp(); | 281 SamplerRegistry::SetUp(); |
| 281 ExternalReference::SetUp(); | 282 ExternalReference::SetUp(); |
| 282 } | 283 } |
| 283 | 284 |
| 284 void V8::InitializeOncePerProcess() { | 285 void V8::InitializeOncePerProcess() { |
| 285 CallOnce(&init_once, &InitializeOncePerProcessImpl); | 286 CallOnce(&init_once, &InitializeOncePerProcessImpl); |
| 286 } | 287 } |
| 287 | 288 |
| 288 } } // namespace v8::internal | 289 } } // namespace v8::internal |
| OLD | NEW |