Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 4e5efcd8e02bd115a9c303cba78619d552a07198..4142a53e92e3e6e74b4d02ec37864aa472969345 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -82,7 +82,8 @@ void CodeStub::RecordCodeGeneration(Handle<Code> code) { |
std::ostringstream os; |
os << *this; |
PROFILE(isolate(), |
- CodeCreateEvent(Logger::STUB_TAG, *code, os.str().c_str())); |
+ CodeCreateEvent(Logger::STUB_TAG, AbstractCode::cast(*code), |
+ os.str().c_str())); |
Counters* counters = isolate()->counters(); |
counters->total_stubs_code_size()->Increment(code->instruction_size()); |
#ifdef DEBUG |