Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index 8889f59523d28a4a8b8e1488095e58051e04621d..c60922bd350dc02bf4b41ae32c98eba3965b571b 100755 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -432,7 +432,7 @@ static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) { |
| Compiler::SetFunctionInfo(result, lit, true, script); |
| if (script->name()->IsString()) { |
| - PROFILE(CodeCreateEvent( |
| + PROFILE(isolate, CodeCreateEvent( |
| info->is_eval() |
| ? Logger::EVAL_TAG |
| : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script), |
| @@ -443,7 +443,7 @@ static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) { |
| script, |
| info->code())); |
| } else { |
| - PROFILE(CodeCreateEvent( |
| + PROFILE(isolate, CodeCreateEvent( |
| info->is_eval() |
| ? Logger::EVAL_TAG |
| : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script), |
| @@ -803,13 +803,13 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
| if (script->name()->IsString()) { |
| int line_num = GetScriptLineNumber(script, shared->start_position()) + 1; |
| USE(line_num); |
| - PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
| + PROFILE(info->isolate(), CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
|
Vitaly Repeshko
2011/03/16 17:33:24
Lines should fit in 80 chars. Please run tools/pre
|
| *code, |
| *shared, |
| String::cast(script->name()), |
| line_num)); |
| } else { |
| - PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
| + PROFILE(info->isolate(), CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
| *code, |
| *shared, |
| shared->DebugName())); |