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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 if (FLAG_compress_log) { | 919 if (FLAG_compress_log) { |
920 ASSERT(compression_helper_ != NULL); | 920 ASSERT(compression_helper_ != NULL); |
921 if (!compression_helper_->HandleMessage(&msg)) return; | 921 if (!compression_helper_->HandleMessage(&msg)) return; |
922 } | 922 } |
923 msg.Append('\n'); | 923 msg.Append('\n'); |
924 msg.WriteToLogFile(); | 924 msg.WriteToLogFile(); |
925 #endif | 925 #endif |
926 } | 926 } |
927 | 927 |
928 | 928 |
929 void Logger::FunctionCreateEventFromMove(JSFunction* function, | 929 void Logger::FunctionCreateEventFromMove(JSFunction* function) { |
930 HeapObject*) { | |
931 #ifdef ENABLE_LOGGING_AND_PROFILING | 930 #ifdef ENABLE_LOGGING_AND_PROFILING |
932 if (function->unchecked_code() != Builtins::builtin(Builtins::LazyCompile)) { | 931 if (function->unchecked_code() != Builtins::builtin(Builtins::LazyCompile)) { |
933 FunctionCreateEvent(function); | 932 FunctionCreateEvent(function); |
934 } | 933 } |
935 #endif | 934 #endif |
936 } | 935 } |
937 | 936 |
938 | 937 |
939 void Logger::FunctionMoveEvent(Address from, Address to) { | 938 void Logger::FunctionMoveEvent(Address from, Address to) { |
940 #ifdef ENABLE_LOGGING_AND_PROFILING | 939 #ifdef ENABLE_LOGGING_AND_PROFILING |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1640 } | 1639 } |
1641 // Otherwise, if the sliding state window computation has not been | 1640 // Otherwise, if the sliding state window computation has not been |
1642 // started we do it now. | 1641 // started we do it now. |
1643 if (sliding_state_window_ == NULL) { | 1642 if (sliding_state_window_ == NULL) { |
1644 sliding_state_window_ = new SlidingStateWindow(); | 1643 sliding_state_window_ = new SlidingStateWindow(); |
1645 } | 1644 } |
1646 #endif | 1645 #endif |
1647 } | 1646 } |
1648 | 1647 |
1649 } } // namespace v8::internal | 1648 } } // namespace v8::internal |
OLD | NEW |