Index: src/bootstrapper.cc |
=================================================================== |
--- src/bootstrapper.cc (revision 1738) |
+++ src/bootstrapper.cc (working copy) |
@@ -832,12 +832,16 @@ |
bool Genesis::CompileNative(Vector<const char> name, Handle<String> source) { |
HandleScope scope; |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
Debugger::set_compiling_natives(true); |
+#endif |
bool result = |
CompileScriptCached(name, source, &natives_cache, NULL, true); |
ASSERT(Top::has_pending_exception() != result); |
if (!result) Top::clear_pending_exception(); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
Debugger::set_compiling_natives(false); |
+#endif |
return result; |
} |
@@ -1132,6 +1136,7 @@ |
Handle<JSObject>(js_global->builtins()), DONT_ENUM); |
} |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
// Expose the debug global object in global if a name for it is specified. |
if (FLAG_expose_debug_as != NULL && strlen(FLAG_expose_debug_as) != 0) { |
// If loading fails we just bail out without installing the |
@@ -1149,6 +1154,7 @@ |
SetProperty(js_global, debug_string, |
Handle<Object>(Debug::debug_context()->global_proxy()), DONT_ENUM); |
} |
+#endif |
return true; |
} |