| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if !defined(_WIN32) && !defined(_WIN64) | 5 #if !defined(_WIN32) && !defined(_WIN64) |
| 6 #include <unistd.h> // NOLINT | 6 #include <unistd.h> // NOLINT |
| 7 #endif // !defined(_WIN32) && !defined(_WIN64) | 7 #endif // !defined(_WIN32) && !defined(_WIN64) |
| 8 | 8 |
| 9 #include <locale.h> | 9 #include <locale.h> |
| 10 | 10 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 inspector_client_->session()->schedulePauseOnNextStatement(reason_view, | 281 inspector_client_->session()->schedulePauseOnNextStatement(reason_view, |
| 282 details_view); | 282 details_view); |
| 283 } | 283 } |
| 284 | 284 |
| 285 static void CancelPauseOnNextStatement( | 285 static void CancelPauseOnNextStatement( |
| 286 const v8::FunctionCallbackInfo<v8::Value>& args) { | 286 const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 287 if (args.Length() != 0) { | 287 if (args.Length() != 0) { |
| 288 fprintf(stderr, "Internal error: cancelPauseOnNextStatement()."); | 288 fprintf(stderr, "Internal error: cancelPauseOnNextStatement()."); |
| 289 Exit(); | 289 Exit(); |
| 290 } | 290 } |
| 291 v8::Local<v8::Context> context = args.GetIsolate()->GetCurrentContext(); | |
| 292 inspector_client_->session()->cancelPauseOnNextStatement(); | 291 inspector_client_->session()->cancelPauseOnNextStatement(); |
| 293 } | 292 } |
| 294 | 293 |
| 295 static void Reconnect(const v8::FunctionCallbackInfo<v8::Value>& args) { | 294 static void Reconnect(const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 296 if (args.Length() != 0) { | 295 if (args.Length() != 0) { |
| 297 fprintf(stderr, "Internal error: reconnect()."); | 296 fprintf(stderr, "Internal error: reconnect()."); |
| 298 Exit(); | 297 Exit(); |
| 299 } | 298 } |
| 300 v8::base::Semaphore ready_semaphore(0); | 299 v8::base::Semaphore ready_semaphore(0); |
| 301 inspector_client_->scheduleReconnect(&ready_semaphore); | 300 inspector_client_->scheduleReconnect(&ready_semaphore); |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 argv[i]); | 683 argv[i]); |
| 685 Exit(); | 684 Exit(); |
| 686 } | 685 } |
| 687 frontend_runner.Append(new ExecuteStringTask(chars)); | 686 frontend_runner.Append(new ExecuteStringTask(chars)); |
| 688 } | 687 } |
| 689 | 688 |
| 690 frontend_runner.Join(); | 689 frontend_runner.Join(); |
| 691 backend_runner.Join(); | 690 backend_runner.Join(); |
| 692 return 0; | 691 return 0; |
| 693 } | 692 } |
| OLD | NEW |