| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3128 // DebugCommandProcessor goes here. | 3128 // DebugCommandProcessor goes here. |
| 3129 v8::Local<v8::Object> cmd_processor; | 3129 v8::Local<v8::Object> cmd_processor; |
| 3130 { | 3130 { |
| 3131 v8::Local<v8::Object> api_exec_state = | 3131 v8::Local<v8::Object> api_exec_state = |
| 3132 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); | 3132 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); |
| 3133 v8::Local<v8::String> fun_name = | 3133 v8::Local<v8::String> fun_name = |
| 3134 v8::String::New("debugCommandProcessor"); | 3134 v8::String::New("debugCommandProcessor"); |
| 3135 v8::Local<v8::Function> fun = | 3135 v8::Local<v8::Function> fun = |
| 3136 v8::Local<v8::Function>::Cast(api_exec_state->Get(fun_name)); | 3136 v8::Local<v8::Function>::Cast(api_exec_state->Get(fun_name)); |
| 3137 | 3137 |
| 3138 v8::Handle<v8::Boolean> running = | 3138 v8::Handle<v8::Boolean> running = v8::Boolean::New(auto_continue); |
| 3139 auto_continue ? v8::True() : v8::False(); | |
| 3140 static const int kArgc = 1; | 3139 static const int kArgc = 1; |
| 3141 v8::Handle<Value> argv[kArgc] = { running }; | 3140 v8::Handle<Value> argv[kArgc] = { running }; |
| 3142 cmd_processor = v8::Local<v8::Object>::Cast( | 3141 cmd_processor = v8::Local<v8::Object>::Cast( |
| 3143 fun->Call(api_exec_state, kArgc, argv)); | 3142 fun->Call(api_exec_state, kArgc, argv)); |
| 3144 if (try_catch.HasCaught()) { | 3143 if (try_catch.HasCaught()) { |
| 3145 PrintLn(try_catch.Exception()); | 3144 PrintLn(try_catch.Exception()); |
| 3146 return; | 3145 return; |
| 3147 } | 3146 } |
| 3148 } | 3147 } |
| 3149 | 3148 |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3852 { | 3851 { |
| 3853 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3852 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
| 3854 isolate_->debugger()->CallMessageDispatchHandler(); | 3853 isolate_->debugger()->CallMessageDispatchHandler(); |
| 3855 } | 3854 } |
| 3856 } | 3855 } |
| 3857 } | 3856 } |
| 3858 | 3857 |
| 3859 #endif // ENABLE_DEBUGGER_SUPPORT | 3858 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3860 | 3859 |
| 3861 } } // namespace v8::internal | 3860 } } // namespace v8::internal |
| OLD | NEW |