| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index 0c76f6944f86684b31e360d5fe1d2f6d40ba8b78..284bbdc7bceaccae7e69427b18aac1d83870734d 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -31,6 +31,7 @@
|
| #include "arguments.h"
|
| #include "bootstrapper.h"
|
| #include "builtins.h"
|
| +#include "gdbjit.h"
|
| #include "ic-inl.h"
|
| #include "vm-state-inl.h"
|
|
|
| @@ -1559,7 +1560,11 @@ void Builtins::Setup(bool create_heap_objects) {
|
| }
|
| // Log the event and add the code to the builtins array.
|
| PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG,
|
| - Code::cast(code), functions[i].s_name));
|
| + Code::cast(code),
|
| + functions[i].s_name));
|
| + GDBJIT(AddCode(GDBJITInterface::BUILTIN,
|
| + functions[i].s_name,
|
| + Code::cast(code)));
|
| builtins_[i] = code;
|
| #ifdef ENABLE_DISASSEMBLER
|
| if (FLAG_print_builtin_code) {
|
|
|