| 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 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1785 } | 1785 } |
| 1786 | 1786 |
| 1787 if (FLAG_marking_threads > 0) { | 1787 if (FLAG_marking_threads > 0) { |
| 1788 for (int i = 0; i < FLAG_marking_threads; i++) { | 1788 for (int i = 0; i < FLAG_marking_threads; i++) { |
| 1789 marking_thread_[i]->Stop(); | 1789 marking_thread_[i]->Stop(); |
| 1790 delete marking_thread_[i]; | 1790 delete marking_thread_[i]; |
| 1791 } | 1791 } |
| 1792 delete[] marking_thread_; | 1792 delete[] marking_thread_; |
| 1793 } | 1793 } |
| 1794 | 1794 |
| 1795 if (FLAG_hydrogen_stats) HStatistics::Instance()->Print(); | 1795 if (FLAG_hydrogen_stats) GetHStatistics()->Print(); |
| 1796 | 1796 |
| 1797 // We must stop the logger before we tear down other components. | 1797 // We must stop the logger before we tear down other components. |
| 1798 logger_->EnsureTickerStopped(); | 1798 logger_->EnsureTickerStopped(); |
| 1799 | 1799 |
| 1800 delete deoptimizer_data_; | 1800 delete deoptimizer_data_; |
| 1801 deoptimizer_data_ = NULL; | 1801 deoptimizer_data_ = NULL; |
| 1802 if (FLAG_preemption) { | 1802 if (FLAG_preemption) { |
| 1803 v8::Locker locker(reinterpret_cast<v8::Isolate*>(this)); | 1803 v8::Locker locker(reinterpret_cast<v8::Isolate*>(this)); |
| 1804 v8::Locker::StopPreemption(); | 1804 v8::Locker::StopPreemption(); |
| 1805 } | 1805 } |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2311 } | 2311 } |
| 2312 if (deferred->next_ != NULL) { | 2312 if (deferred->next_ != NULL) { |
| 2313 deferred->next_->previous_ = deferred->previous_; | 2313 deferred->next_->previous_ = deferred->previous_; |
| 2314 } | 2314 } |
| 2315 if (deferred->previous_ != NULL) { | 2315 if (deferred->previous_ != NULL) { |
| 2316 deferred->previous_->next_ = deferred->next_; | 2316 deferred->previous_->next_ = deferred->next_; |
| 2317 } | 2317 } |
| 2318 } | 2318 } |
| 2319 | 2319 |
| 2320 | 2320 |
| 2321 HStatistics* Isolate::GetHStatistics() { |
| 2322 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); |
| 2323 return hstatistics(); |
| 2324 } |
| 2325 |
| 2326 |
| 2321 HTracer* Isolate::GetHTracer() { | 2327 HTracer* Isolate::GetHTracer() { |
| 2322 if (htracer() == NULL) set_htracer(new HTracer(id())); | 2328 if (htracer() == NULL) set_htracer(new HTracer(id())); |
| 2323 return htracer(); | 2329 return htracer(); |
| 2324 } | 2330 } |
| 2325 | 2331 |
| 2326 | 2332 |
| 2327 CodeStubInterfaceDescriptor* | 2333 CodeStubInterfaceDescriptor* |
| 2328 Isolate::code_stub_interface_descriptor(int index) { | 2334 Isolate::code_stub_interface_descriptor(int index) { |
| 2329 return code_stub_interface_descriptors_ + index; | 2335 return code_stub_interface_descriptors_ + index; |
| 2330 } | 2336 } |
| 2331 | 2337 |
| 2332 | 2338 |
| 2333 #ifdef DEBUG | 2339 #ifdef DEBUG |
| 2334 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2340 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2335 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2341 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2336 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2342 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2337 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2343 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2338 #undef ISOLATE_FIELD_OFFSET | 2344 #undef ISOLATE_FIELD_OFFSET |
| 2339 #endif | 2345 #endif |
| 2340 | 2346 |
| 2341 } } // namespace v8::internal | 2347 } } // namespace v8::internal |
| OLD | NEW |