diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-19 11:06:13 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-19 11:06:13 -0800 |
commit | b8f006ef72bb518397483d5b43111ddbcff250c8 (patch) | |
tree | 0bd0a7f2ae70606aca210c38596fa8f2f6e52194 /deps/v8/src/builtins.cc | |
parent | e6e6e87463d4b1d3d8d5c129e4d008d35a1b5463 (diff) | |
download | node-new-b8f006ef72bb518397483d5b43111ddbcff250c8.tar.gz |
Upgrade V8 to 3.0.9
Diffstat (limited to 'deps/v8/src/builtins.cc')
-rw-r--r-- | deps/v8/src/builtins.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/src/builtins.cc b/deps/v8/src/builtins.cc index a659c461c0..c4c9fc11c8 100644 --- a/deps/v8/src/builtins.cc +++ b/deps/v8/src/builtins.cc @@ -31,6 +31,7 @@ #include "arguments.h" #include "bootstrapper.h" #include "builtins.h" +#include "gdb-jit.h" #include "ic-inl.h" #include "vm-state-inl.h" @@ -1550,7 +1551,7 @@ void Builtins::Setup(bool create_heap_objects) { CodeDesc desc; masm.GetCode(&desc); Code::Flags flags = functions[i].flags; - Object* code = 0; + Object* code = NULL; { // During startup it's OK to always allocate and defer GC to later. // This simplifies things because we don't need to retry. @@ -1564,7 +1565,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) { |