| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 PROFILE(ISOLATE, GetterCallbackEvent(name, getter_entry)); | 1608 PROFILE(ISOLATE, GetterCallbackEvent(name, getter_entry)); |
| 1609 } | 1609 } |
| 1610 Address setter_entry = v8::ToCData<Address>(ai->setter()); | 1610 Address setter_entry = v8::ToCData<Address>(ai->setter()); |
| 1611 if (setter_entry != 0) { | 1611 if (setter_entry != 0) { |
| 1612 PROFILE(ISOLATE, SetterCallbackEvent(name, setter_entry)); | 1612 PROFILE(ISOLATE, SetterCallbackEvent(name, setter_entry)); |
| 1613 } | 1613 } |
| 1614 } | 1614 } |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 1617 | 1617 |
| 1618 bool Logger::Setup() { | 1618 bool Logger::SetUp() { |
| 1619 // Tests and EnsureInitialize() can call this twice in a row. It's harmless. | 1619 // Tests and EnsureInitialize() can call this twice in a row. It's harmless. |
| 1620 if (is_initialized_) return true; | 1620 if (is_initialized_) return true; |
| 1621 is_initialized_ = true; | 1621 is_initialized_ = true; |
| 1622 | 1622 |
| 1623 // --ll-prof implies --log-code and --log-snapshot-positions. | 1623 // --ll-prof implies --log-code and --log-snapshot-positions. |
| 1624 if (FLAG_ll_prof) { | 1624 if (FLAG_ll_prof) { |
| 1625 FLAG_log_snapshot_positions = true; | 1625 FLAG_log_snapshot_positions = true; |
| 1626 } | 1626 } |
| 1627 | 1627 |
| 1628 // --prof_lazy controls --log-code, implies --noprof_auto. | 1628 // --prof_lazy controls --log-code, implies --noprof_auto. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 sliding_state_window_ = NULL; | 1701 sliding_state_window_ = NULL; |
| 1702 | 1702 |
| 1703 delete ticker_; | 1703 delete ticker_; |
| 1704 ticker_ = NULL; | 1704 ticker_ = NULL; |
| 1705 | 1705 |
| 1706 return log_->Close(); | 1706 return log_->Close(); |
| 1707 } | 1707 } |
| 1708 | 1708 |
| 1709 | 1709 |
| 1710 void Logger::EnableSlidingStateWindow() { | 1710 void Logger::EnableSlidingStateWindow() { |
| 1711 // If the ticker is NULL, Logger::Setup has not been called yet. In | 1711 // If the ticker is NULL, Logger::SetUp has not been called yet. In |
| 1712 // that case, we set the sliding_state_window flag so that the | 1712 // that case, we set the sliding_state_window flag so that the |
| 1713 // sliding window computation will be started when Logger::Setup is | 1713 // sliding window computation will be started when Logger::SetUp is |
| 1714 // called. | 1714 // called. |
| 1715 if (ticker_ == NULL) { | 1715 if (ticker_ == NULL) { |
| 1716 FLAG_sliding_state_window = true; | 1716 FLAG_sliding_state_window = true; |
| 1717 return; | 1717 return; |
| 1718 } | 1718 } |
| 1719 // Otherwise, if the sliding state window computation has not been | 1719 // Otherwise, if the sliding state window computation has not been |
| 1720 // started we do it now. | 1720 // started we do it now. |
| 1721 if (sliding_state_window_ == NULL) { | 1721 if (sliding_state_window_ == NULL) { |
| 1722 sliding_state_window_ = new SlidingStateWindow(Isolate::Current()); | 1722 sliding_state_window_ = new SlidingStateWindow(Isolate::Current()); |
| 1723 } | 1723 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1769 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1770 ASSERT(sampler->IsActive()); | 1770 ASSERT(sampler->IsActive()); |
| 1771 ScopedLock lock(mutex_); | 1771 ScopedLock lock(mutex_); |
| 1772 ASSERT(active_samplers_ != NULL); | 1772 ASSERT(active_samplers_ != NULL); |
| 1773 bool removed = active_samplers_->RemoveElement(sampler); | 1773 bool removed = active_samplers_->RemoveElement(sampler); |
| 1774 ASSERT(removed); | 1774 ASSERT(removed); |
| 1775 USE(removed); | 1775 USE(removed); |
| 1776 } | 1776 } |
| 1777 | 1777 |
| 1778 } } // namespace v8::internal | 1778 } } // namespace v8::internal |
| OLD | NEW |