| Index: src/compiler.cc
|
| ===================================================================
|
| --- src/compiler.cc (revision 6384)
|
| +++ src/compiler.cc (working copy)
|
| @@ -35,6 +35,7 @@
|
| #include "data-flow.h"
|
| #include "debug.h"
|
| #include "full-codegen.h"
|
| +#include "gdb-jit.h"
|
| #include "hydrogen.h"
|
| #include "lithium-allocator.h"
|
| #include "liveedit.h"
|
| @@ -207,7 +208,8 @@
|
|
|
| // Limit the number of times we re-compile a functions with
|
| // the optimizing compiler.
|
| - const int kMaxOptCount = FLAG_deopt_every_n_times == 0 ? 10 : 1000;
|
| + const int kMaxOptCount =
|
| + FLAG_deopt_every_n_times == 0 ? Compiler::kDefaultMaxOptCount : 1000;
|
| if (info->shared_info()->opt_count() > kMaxOptCount) {
|
| AbortAndDisable(info);
|
| // True indicates the compilation pipeline is still going, not
|
| @@ -420,6 +422,9 @@
|
| OPROFILE(CreateNativeCodeRegion(String::cast(script->name()),
|
| info->code()->instruction_start(),
|
| info->code()->instruction_size()));
|
| + GDBJIT(AddCode(Handle<String>(String::cast(script->name())),
|
| + script,
|
| + info->code()));
|
| } else {
|
| PROFILE(CodeCreateEvent(
|
| info->is_eval()
|
| @@ -430,6 +435,7 @@
|
| OPROFILE(CreateNativeCodeRegion(info->is_eval() ? "Eval" : "Script",
|
| info->code()->instruction_start(),
|
| info->code()->instruction_size()));
|
| + GDBJIT(AddCode(Handle<String>(), script, info->code()));
|
| }
|
|
|
| // Allocate function.
|
| @@ -793,6 +799,10 @@
|
| code->instruction_size()));
|
| }
|
| }
|
| +
|
| + GDBJIT(AddCode(name,
|
| + Handle<Script>(info->script()),
|
| + Handle<Code>(info->code())));
|
| }
|
|
|
| } } // namespace v8::internal
|
|
|