Remove unused CodeRegion class and corresponding logging functions.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1728 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7aacf009
...@@ -341,22 +341,6 @@ class RelocIterator: public Malloced { ...@@ -341,22 +341,6 @@ class RelocIterator: public Malloced {
}; };
// A stack-allocated code region logs a name for the code generated
// while the region is in effect. This information is used by the
// profiler to categorize ticks within generated code.
class CodeRegion BASE_EMBEDDED {
public:
inline CodeRegion(Assembler* assm, const char *name) : assm_(assm) {
LOG(BeginCodeRegionEvent(this, assm, name));
}
inline ~CodeRegion() {
LOG(EndCodeRegionEvent(this, assm_));
}
private:
Assembler* assm_;
};
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// External function // External function
......
...@@ -146,7 +146,6 @@ class Assembler; ...@@ -146,7 +146,6 @@ class Assembler;
class BreakableStatement; class BreakableStatement;
class Code; class Code;
class CodeGenerator; class CodeGenerator;
class CodeRegion;
class CodeStub; class CodeStub;
class Context; class Context;
class Debug; class Debug;
......
...@@ -814,35 +814,6 @@ void Logger::CodeDeleteEvent(Address from) { ...@@ -814,35 +814,6 @@ void Logger::CodeDeleteEvent(Address from) {
} }
void Logger::BeginCodeRegionEvent(CodeRegion* region,
Assembler* masm,
const char* name) {
#ifdef ENABLE_LOGGING_AND_PROFILING
if (logfile_ == NULL || !FLAG_log_code) return;
LogMessageBuilder msg;
msg.Append("begin-code-region,0x%x,0x%x,0x%x,%s\n",
reinterpret_cast<unsigned int>(region),
reinterpret_cast<unsigned int>(masm),
masm->pc_offset(),
name);
msg.WriteToLogFile();
#endif
}
void Logger::EndCodeRegionEvent(CodeRegion* region, Assembler* masm) {
#ifdef ENABLE_LOGGING_AND_PROFILING
if (logfile_ == NULL || !FLAG_log_code) return;
LogMessageBuilder msg;
msg.Append("end-code-region,0x%x,0x%x,0x%x\n",
reinterpret_cast<unsigned int>(region),
reinterpret_cast<unsigned int>(masm),
masm->pc_offset());
msg.WriteToLogFile();
#endif
}
void Logger::ResourceEvent(const char* name, const char* tag) { void Logger::ResourceEvent(const char* name, const char* tag) {
#ifdef ENABLE_LOGGING_AND_PROFILING #ifdef ENABLE_LOGGING_AND_PROFILING
if (logfile_ == NULL || !FLAG_log) return; if (logfile_ == NULL || !FLAG_log) return;
......
...@@ -174,11 +174,6 @@ class Logger { ...@@ -174,11 +174,6 @@ class Logger {
static void CodeMoveEvent(Address from, Address to); static void CodeMoveEvent(Address from, Address to);
// Emits a code delete event. // Emits a code delete event.
static void CodeDeleteEvent(Address from); static void CodeDeleteEvent(Address from);
// Emits region delimiters
static void BeginCodeRegionEvent(CodeRegion* region,
Assembler* masm,
const char* name);
static void EndCodeRegionEvent(CodeRegion* region, Assembler* masm);
// ==== Events logged by --log-gc. ==== // ==== Events logged by --log-gc. ====
// Heap sampling events: start, end, and individual types. // Heap sampling events: start, end, and individual types.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment