Chromium Code Reviews| Index: src/log.cc |
| diff --git a/src/log.cc b/src/log.cc |
| index a9d89a20ea49fd848dcdc3edd43fff07a7aa8010..3e3b64e82850389def24a202129221c45b78145b 100644 |
| --- a/src/log.cc |
| +++ b/src/log.cc |
| @@ -877,8 +877,8 @@ void Logger::FunctionCreateEvent(JSFunction* function) { |
| msg.Append("%s,", log_events_[FUNCTION_CREATION_EVENT]); |
| msg.AppendAddress(function->address()); |
| msg.Append(','); |
|
Søren Thygesen Gjesse
2010/09/24 10:20:07
I think a comment here on why we use unchecked_cod
mnaganov (inactive)
2010/09/24 11:43:40
Done.
|
| - msg.AppendAddress(function->code()->address(), prev_code); |
| - prev_code = function->code()->address(); |
| + msg.AppendAddress(function->unchecked_code()->address(), prev_code); |
| + prev_code = function->unchecked_code()->address(); |
| if (FLAG_compress_log) { |
| ASSERT(compression_helper_ != NULL); |
| if (!compression_helper_->HandleMessage(&msg)) return; |
| @@ -889,6 +889,16 @@ void Logger::FunctionCreateEvent(JSFunction* function) { |
| } |
| +void Logger::FunctionCreateEventFromMove(JSFunction* function, |
| + HeapObject*) { |
| +#ifdef ENABLE_LOGGING_AND_PROFILING |
| + if (function->unchecked_code() != Builtins::builtin(Builtins::LazyCompile)) { |
| + FunctionCreateEvent(function); |
| + } |
| +#endif |
| +} |
| + |
| + |
| void Logger::FunctionMoveEvent(Address from, Address to) { |
| #ifdef ENABLE_LOGGING_AND_PROFILING |
| MoveEventInternal(FUNCTION_MOVE_EVENT, from, to); |