Removed some unused debugger functions.
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Nov 2008 09:45:50 +0000 (09:45 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Nov 2008 09:45:50 +0000 (09:45 +0000)
Review URL: http://codereview.chromium.org/10249

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@723 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/debug-delay.js
src/debug.cc
src/debug.h

index 783e4b7525454fc1fae2b38251516e17a7167705..4d583b7a4460d1427e2a27b7a2113d5401505518 100644 (file)
@@ -357,15 +357,6 @@ function UpdateScriptBreakPoints(script) {
 }
 
 
-// Function called from the runtime to handle a debug request receiced from the
-// debugger. When this function is called the debugger is in the broken state
-// reflected by the exec_state parameter. When pending requests are handled the
-// parameter stopping indicate the expected running state.
-function ProcessDebugRequest(exec_state, request, stopping) {
-  return exec_state.debugCommandProcessor().processDebugJSONRequest(request, stopping);
-}
-
-
 Debug.addListener = function(listener, opt_data) {
   if (!IS_FUNCTION(listener)) throw new Error('Parameters have wrong types.');
   %AddDebugEventListener(listener, opt_data);
index 33fafe716a42952de822dc220fa9c7d937de83ed..c59af39f8eda8ea1867cbe70cc6c2f05d564ea98 100644 (file)
@@ -1371,35 +1371,6 @@ Handle<Object> Debugger::MakeCompileEvent(Handle<Script> script,
 }
 
 
-Handle<String> Debugger::ProcessRequest(Handle<Object> exec_state,
-                                        Handle<Object> request,
-                                        bool stopped) {
-  // Get the function ProcessDebugRequest (declared in debug.js).
-  Handle<JSFunction> process_denbug_request =
-    Handle<JSFunction>(JSFunction::cast(
-    Debug::debug_context()->global()->GetProperty(
-        *Factory::LookupAsciiSymbol("ProcessDebugRequest"))));
-
-  // Call ProcessDebugRequest expect String result. The ProcessDebugRequest
-  // will never throw an exception (see debug.js).
-  bool caught_exception;
-  const int argc = 3;
-  Object** argv[argc] = { exec_state.location(),
-                          request.location(),
-                          stopped ? Factory::true_value().location() :
-                                    Factory::false_value().location()};
-  Handle<Object> result = Execution::TryCall(process_denbug_request,
-                                             Factory::undefined_value(),
-                                             argc, argv,
-                                             &caught_exception);
-  if (caught_exception) {
-    return Factory::empty_symbol();
-  }
-
-  return Handle<String>::cast(result);
-}
-
-
 void Debugger::OnException(Handle<Object> exception, bool uncaught) {
   HandleScope scope;
 
index 69e2aaa8345d6908febc60fa43b238dca4e3558f..68339827ffce4507aac1cd03dac95ba3eb80f6ee 100644 (file)
@@ -346,9 +346,6 @@ class Debugger {
   static Handle<Object> MakeCompileEvent(Handle<Script> script,
                                          Handle<Object> script_function,
                                          bool* caught_exception);
-  static Handle<String> ProcessRequest(Handle<Object> exec_state,
-                                       Handle<Object> request,
-                                       bool stopped);
   static void OnDebugBreak(Handle<Object> break_points_hit);
   static void OnException(Handle<Object> exception, bool uncaught);
   static void OnBeforeCompile(Handle<Script> script);