Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 925e8a97b8029b4713adc5abc4cc15c402dadf51..ddaea59abf991f1ad1e5e95f7fe0aaf039e0894e 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1638,6 +1638,7 @@ void Builtins::SetUp(Isolate* isolate, bool create_heap_objects) { |
PROFILE(isolate, |
CodeCreateEvent(Logger::BUILTIN_TAG, *code, functions[i].s_name)); |
builtins_[i] = *code; |
+ if (code->kind() == Code::BUILTIN) code->set_builtin_index(i); |
#ifdef ENABLE_DISASSEMBLER |
if (FLAG_print_builtin_code) { |
CodeTracer::Scope trace_scope(isolate->GetCodeTracer()); |