Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: src/objects.cc

Issue 18512002: Fix debuggersupport=off build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698