| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 5632ff738e4bab0874beee58f775808df6d7704d..fd0c7c65b5d454c7842a99f59da9e6ccf5006a5f 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -164,11 +164,13 @@ static Handle<JSFunction> MakeFunction(bool is_global,
|
| if (script->name()->IsString()) {
|
| SmartPointer<char> data =
|
| String::cast(script->name())->ToCString(DISALLOW_NULLS);
|
| - LOG(CodeCreateEvent(is_eval ? "Eval" : "Script", *code, *data));
|
| + LOG(CodeCreateEvent(is_eval ? Logger::EVAL_TAG : Logger::SCRIPT_TAG,
|
| + *code, *data));
|
| OProfileAgent::CreateNativeCodeRegion(*data, code->address(),
|
| code->ExecutableSize());
|
| } else {
|
| - LOG(CodeCreateEvent(is_eval ? "Eval" : "Script", *code, ""));
|
| + LOG(CodeCreateEvent(is_eval ? Logger::EVAL_TAG : Logger::SCRIPT_TAG,
|
| + *code, ""));
|
| OProfileAgent::CreateNativeCodeRegion(is_eval ? "Eval" : "Script",
|
| code->address(), code->ExecutableSize());
|
| }
|
| @@ -365,14 +367,14 @@ bool Compiler::CompileLazy(Handle<SharedFunctionInfo> shared,
|
| if (line_num > 0) {
|
| line_num += script->line_offset()->value() + 1;
|
| }
|
| - LOG(CodeCreateEvent("LazyCompile", *code, *func_name,
|
| + LOG(CodeCreateEvent(Logger::LAZY_COMPILE_TAG, *code, *func_name,
|
| String::cast(script->name()), line_num));
|
| OProfileAgent::CreateNativeCodeRegion(*func_name,
|
| String::cast(script->name()),
|
| line_num, code->address(),
|
| code->ExecutableSize());
|
| } else {
|
| - LOG(CodeCreateEvent("LazyCompile", *code, *func_name));
|
| + LOG(CodeCreateEvent(Logger::LAZY_COMPILE_TAG, *code, *func_name));
|
| OProfileAgent::CreateNativeCodeRegion(*func_name, code->address(),
|
| code->ExecutableSize());
|
| }
|
|
|