| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index d1a617e14dd5fe11e5441d1c5398a19b0ac80f1e..0bc90bdb836bd12078f3ca55637a0c78933aefcf 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -9139,8 +9139,17 @@ void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) {
|
| }
|
|
|
|
|
| +#ifdef ENABLE_DEBUGGER_SUPPORT
|
| +#define ASSERT_UNLESS_DEBUG_BREAKPOINTS(assert) \
|
| + ASSERT((assert) || GetIsolate()->debug()->has_break_points());
|
| +#else
|
| +#define ASSERT_UNLESS_DEBUG_BREAKPOINTS(assert) \
|
| + ASSERT((assert));
|
| +#endif // ENABLE_DEBUGGER_SUPPORT
|
| +
|
| +
|
| void JSFunction::MarkForLazyRecompilation() {
|
| - ASSERT(is_compiled() || GetIsolate()->debugger()->IsDebuggerActive());
|
| + ASSERT_UNLESS_DEBUG_BREAKPOINTS(is_compiled());
|
| ASSERT(!IsOptimized());
|
| ASSERT(shared()->allows_lazy_compilation() ||
|
| code()->optimizable());
|
| @@ -9151,7 +9160,7 @@ void JSFunction::MarkForLazyRecompilation() {
|
|
|
|
|
| void JSFunction::MarkForParallelRecompilation() {
|
| - ASSERT(is_compiled() || GetIsolate()->debugger()->IsDebuggerActive());
|
| + ASSERT_UNLESS_DEBUG_BREAKPOINTS(is_compiled());
|
| ASSERT(!IsOptimized());
|
| ASSERT(shared()->allows_lazy_compilation() || code()->optimizable());
|
| if (!FLAG_parallel_recompilation) {
|
| @@ -9170,7 +9179,7 @@ void JSFunction::MarkForParallelRecompilation() {
|
|
|
|
|
| void JSFunction::MarkForInstallingRecompiledCode() {
|
| - ASSERT(is_compiled() || GetIsolate()->debugger()->IsDebuggerActive());
|
| + ASSERT_UNLESS_DEBUG_BREAKPOINTS(IsInRecompileQueue());
|
| ASSERT(!IsOptimized());
|
| ASSERT(shared()->allows_lazy_compilation() || code()->optimizable());
|
| ASSERT(FLAG_parallel_recompilation);
|
| @@ -9181,7 +9190,7 @@ void JSFunction::MarkForInstallingRecompiledCode() {
|
|
|
|
|
| void JSFunction::MarkInRecompileQueue() {
|
| - ASSERT(is_compiled() || GetIsolate()->debugger()->IsDebuggerActive());
|
| + ASSERT_UNLESS_DEBUG_BREAKPOINTS(IsMarkedForParallelRecompilation());
|
| ASSERT(!IsOptimized());
|
| ASSERT(shared()->allows_lazy_compilation() || code()->optimizable());
|
| ASSERT(FLAG_parallel_recompilation);
|
| @@ -9196,6 +9205,9 @@ void JSFunction::MarkInRecompileQueue() {
|
| }
|
|
|
|
|
| +#undef ASSERT_UNLESS_DEBUG_BREAKPOINTS
|
| +
|
| +
|
| static bool CompileLazyHelper(CompilationInfo* info,
|
| ClearExceptionFlag flag) {
|
| // Compile the source information to a code object.
|
|
|