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 if (!has_been_set_up_ || has_been_disposed_) return; | 108 if (!has_been_set_up_ || has_been_disposed_) return; |
109 | 109 |
110 // The isolate has to be torn down before clearing the LOperand | 110 // The isolate has to be torn down before clearing the LOperand |
111 // caches so that the optimizing compiler thread (if running) | 111 // caches so that the optimizing compiler thread (if running) |
112 // doesn't see an inconsistent view of the lithium instructions. | 112 // doesn't see an inconsistent view of the lithium instructions. |
113 isolate->TearDown(); | 113 isolate->TearDown(); |
114 delete isolate; | 114 delete isolate; |
115 | 115 |
116 ElementsAccessor::TearDown(); | 116 ElementsAccessor::TearDown(); |
117 LOperand::TearDownCaches(); | 117 LOperand::TearDownCaches(); |
| 118 ExternalReference::TearDownMathExpData(); |
118 RegisteredExtension::UnregisterAll(); | 119 RegisteredExtension::UnregisterAll(); |
119 | 120 |
120 is_running_ = false; | 121 is_running_ = false; |
121 has_been_disposed_ = true; | 122 has_been_disposed_ = true; |
122 | 123 |
123 delete call_completed_callbacks_; | 124 delete call_completed_callbacks_; |
124 call_completed_callbacks_ = NULL; | 125 call_completed_callbacks_ = NULL; |
125 | 126 |
126 OS::TearDown(); | 127 OS::TearDown(); |
127 } | 128 } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 SetUpJSCallerSavedCodeData(); | 292 SetUpJSCallerSavedCodeData(); |
292 SamplerRegistry::SetUp(); | 293 SamplerRegistry::SetUp(); |
293 ExternalReference::SetUp(); | 294 ExternalReference::SetUp(); |
294 } | 295 } |
295 | 296 |
296 void V8::InitializeOncePerProcess() { | 297 void V8::InitializeOncePerProcess() { |
297 CallOnce(&init_once, &InitializeOncePerProcessImpl); | 298 CallOnce(&init_once, &InitializeOncePerProcessImpl); |
298 } | 299 } |
299 | 300 |
300 } } // namespace v8::internal | 301 } } // namespace v8::internal |
OLD | NEW |