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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 LogMessageBuilder msg; | 874 LogMessageBuilder msg; |
875 msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]); | 875 msg.Append("%s,", kLogEventsNames[SNAPSHOT_POSITION_EVENT]); |
876 msg.AppendAddress(addr); | 876 msg.AppendAddress(addr); |
877 msg.Append(",%d", pos); | 877 msg.Append(",%d", pos); |
878 msg.Append('\n'); | 878 msg.Append('\n'); |
879 msg.WriteToLogFile(); | 879 msg.WriteToLogFile(); |
880 #endif | 880 #endif |
881 } | 881 } |
882 | 882 |
883 | 883 |
884 void Logger::SFIMoveEvent(Address from, Address to) { | 884 void Logger::SharedFunctionMoveEvent(Address from, Address to) { |
885 #ifdef ENABLE_LOGGING_AND_PROFILING | 885 #ifdef ENABLE_LOGGING_AND_PROFILING |
886 MoveEventInternal(SFI_MOVE_EVENT, from, to); | 886 MoveEventInternal(SHARED_FUNC_MOVE_EVENT, from, to); |
887 #endif | 887 #endif |
888 } | 888 } |
889 | 889 |
890 | 890 |
891 #ifdef ENABLE_LOGGING_AND_PROFILING | 891 #ifdef ENABLE_LOGGING_AND_PROFILING |
892 void Logger::MoveEventInternal(LogEventsAndTags event, | 892 void Logger::MoveEventInternal(LogEventsAndTags event, |
893 Address from, | 893 Address from, |
894 Address to) { | 894 Address to) { |
895 if (!Log::IsEnabled() || !FLAG_log_code) return; | 895 if (!Log::IsEnabled() || !FLAG_log_code) return; |
896 LogMessageBuilder msg; | 896 LogMessageBuilder msg; |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 } | 1607 } |
1608 // Otherwise, if the sliding state window computation has not been | 1608 // Otherwise, if the sliding state window computation has not been |
1609 // started we do it now. | 1609 // started we do it now. |
1610 if (sliding_state_window_ == NULL) { | 1610 if (sliding_state_window_ == NULL) { |
1611 sliding_state_window_ = new SlidingStateWindow(); | 1611 sliding_state_window_ = new SlidingStateWindow(); |
1612 } | 1612 } |
1613 #endif | 1613 #endif |
1614 } | 1614 } |
1615 | 1615 |
1616 } } // namespace v8::internal | 1616 } } // namespace v8::internal |
OLD | NEW |