From: yurys@chromium.org Date: Mon, 29 Jul 2013 19:02:16 +0000 (+0000) Subject: Remove unused methods from RuntimeProfiler X-Git-Tag: upstream/4.7.83~13153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c301f8203c66b895fcc5848312e2d69cc36d7ae3;p=platform%2Fupstream%2Fv8.git Remove unused methods from RuntimeProfiler Also removed Logger fields that used to be used for writing compressed logs. BUG=None R=bmeurer@chromium.org, loislo@chromium.org Review URL: https://codereview.chromium.org/20768002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/log.cc b/src/log.cc index c236f5c..b89c2bf 100644 --- a/src/log.cc +++ b/src/log.cc @@ -716,11 +716,6 @@ Logger::Logger(Isolate* isolate) jit_logger_(NULL), listeners_(5), is_initialized_(false), - last_address_(NULL), - prev_sp_(NULL), - prev_function_(NULL), - prev_to_(NULL), - prev_code_(NULL), epoch_(0) { } diff --git a/src/log.h b/src/log.h index c923a00..24d83ef 100644 --- a/src/log.h +++ b/src/log.h @@ -450,17 +450,6 @@ class Logger { // 'true' between SetUp() and TearDown(). bool is_initialized_; - // Support for 'incremental addresses' in compressed logs: - // LogMessageBuilder::AppendAddress(Address addr) - Address last_address_; - // Logger::TickEvent(...) - Address prev_sp_; - Address prev_function_; - // Logger::MoveEventInternal(...) - Address prev_to_; - // Logger::FunctionCreateEvent(...) - Address prev_code_; - int64_t epoch_; friend class CpuProfiler; diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc index ff41432..0e99650 100644 --- a/src/runtime-profiler.cc +++ b/src/runtime-profiler.cc @@ -408,11 +408,6 @@ void RuntimeProfiler::TearDown() { } -int RuntimeProfiler::SamplerWindowSize() { - return kSamplerWindowSize; -} - - // Update the pointers in the sampler window after a GC. void RuntimeProfiler::UpdateSamplesAfterScavenge() { for (int i = 0; i < kSamplerWindowSize; i++) { diff --git a/src/runtime-profiler.h b/src/runtime-profiler.h index 46da381..28d6d32 100644 --- a/src/runtime-profiler.h +++ b/src/runtime-profiler.h @@ -49,9 +49,6 @@ class RuntimeProfiler { void Reset(); void TearDown(); - Object** SamplerWindowAddress(); - int SamplerWindowSize(); - void NotifyICChanged() { any_ic_changed_ = true; } // Rate limiting support.