| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 LogMessageBuilder msg(this); | 904 LogMessageBuilder msg(this); |
| 905 msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]); | 905 msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]); |
| 906 msg.AppendAddress(addr); | 906 msg.AppendAddress(addr); |
| 907 msg.Append(",%d", pos); | 907 msg.Append(",%d", pos); |
| 908 msg.Append('\n'); | 908 msg.Append('\n'); |
| 909 msg.WriteToLogFile(); | 909 msg.WriteToLogFile(); |
| 910 #endif | 910 #endif |
| 911 } | 911 } |
| 912 | 912 |
| 913 | 913 |
| 914 void Logger::SFIMoveEvent(Address from, Address to) { | 914 void Logger::SharedFunctionInfoMoveEvent(Address from, Address to) { |
| 915 #ifdef ENABLE_LOGGING_AND_PROFILING | 915 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 916 MoveEventInternal(SFI_MOVE_EVENT, from, to); | 916 MoveEventInternal(SHARED_FUNC_MOVE_EVENT, from, to); |
| 917 #endif | 917 #endif |
| 918 } | 918 } |
| 919 | 919 |
| 920 | 920 |
| 921 #ifdef ENABLE_LOGGING_AND_PROFILING | 921 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 922 void Logger::MoveEventInternal(LogEventsAndTags event, | 922 void Logger::MoveEventInternal(LogEventsAndTags event, |
| 923 Address from, | 923 Address from, |
| 924 Address to) { | 924 Address to) { |
| 925 if (!log_->IsEnabled() || !FLAG_log_code) return; | 925 if (!log_->IsEnabled() || !FLAG_log_code) return; |
| 926 LogMessageBuilder msg(this); | 926 LogMessageBuilder msg(this); |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1642 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1642 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1643 ASSERT(sampler->IsActive()); | 1643 ASSERT(sampler->IsActive()); |
| 1644 ScopedLock lock(mutex_); | 1644 ScopedLock lock(mutex_); |
| 1645 ASSERT(active_samplers_ != NULL); | 1645 ASSERT(active_samplers_ != NULL); |
| 1646 bool removed = active_samplers_->RemoveElement(sampler); | 1646 bool removed = active_samplers_->RemoveElement(sampler); |
| 1647 ASSERT(removed); | 1647 ASSERT(removed); |
| 1648 USE(removed); | 1648 USE(removed); |
| 1649 } | 1649 } |
| 1650 | 1650 |
| 1651 } } // namespace v8::internal | 1651 } } // namespace v8::internal |
| OLD | NEW |