Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(978)

Side by Side Diff: src/log.cc

Issue 3763012: CPU Profiler: postpone moved functions registration until GC completes. (Closed)
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« src/cpu-profiler.cc ('K') | « src/log.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698