Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index ae07df23cbc6bbf4f5eec43268608c8bd67aaa4c..848be3bca515a2b8106295d17b2d92fe8270640b 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -4371,7 +4371,8 @@ void Builtins::SetUp(Isolate* isolate, bool create_heap_objects) { |
isolate->factory()->NewCode(desc, flags, masm.CodeObject()); |
// Log the event and add the code to the builtins array. |
PROFILE(isolate, |
- CodeCreateEvent(Logger::BUILTIN_TAG, *code, functions[i].s_name)); |
+ CodeCreateEvent(Logger::BUILTIN_TAG, AbstractCode::cast(*code), |
+ functions[i].s_name)); |
builtins_[i] = *code; |
code->set_builtin_index(i); |
#ifdef ENABLE_DISASSEMBLER |