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

Side by Side Diff: src/log.cc

Issue 6683022: [Isolates] Merge 7111:7152 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/log.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/log.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698