Avoid a potential null dereference wrt the CPU profiler.
authorlukezarko <lukezarko@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Jun 2010 15:57:30 +0000 (15:57 +0000)
committerlukezarko <lukezarko@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Jun 2010 15:57:30 +0000 (15:57 +0000)
commit5751d8f50c424ff2700d4a9a94d0453738407914
treea81197215e1481f7c6adf024c9b0a314397916b6
parent49c4718443997269c151bb14deed860176bd5ce3
Avoid a potential null dereference wrt the CPU profiler.

GetActiveProfilerModules()/PauseProfiler()/ResumeProfiler() can be reached
from the API when the --prof runtime flag is not set, leading to null
dereferences. Verify that Logger::profiler_ is non-NULL before using it.

Review URL: http://codereview.chromium.org/2843023

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4953 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/log.cc