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 #ifndef V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ | 5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
6 #define V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ | 6 #define V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
7 | 7 |
8 #include "include/v8-inspector.h" | 8 #include "include/v8-inspector.h" |
9 #include "include/v8-platform.h" | 9 #include "include/v8-platform.h" |
10 #include "include/v8.h" | 10 #include "include/v8.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 v8::base::AtomicNumber<int> is_terminated_; | 65 v8::base::AtomicNumber<int> is_terminated_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(TaskRunner); | 67 DISALLOW_COPY_AND_ASSIGN(TaskRunner); |
68 }; | 68 }; |
69 | 69 |
70 class ExecuteStringTask : public TaskRunner::Task { | 70 class ExecuteStringTask : public TaskRunner::Task { |
71 public: | 71 public: |
72 ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, | 72 ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, |
73 v8::Local<v8::String> name, | 73 v8::Local<v8::String> name, |
74 v8::Local<v8::Integer> line_offset, | 74 v8::Local<v8::Integer> line_offset, |
75 v8::Local<v8::Integer> column_offset); | 75 v8::Local<v8::Integer> column_offset, bool report_async); |
76 explicit ExecuteStringTask( | 76 explicit ExecuteStringTask( |
77 const v8::internal::Vector<const char>& expression); | 77 const v8::internal::Vector<const char>& expression); |
78 bool is_inspector_task() override { return false; } | 78 bool is_inspector_task() override { return false; } |
79 | 79 |
80 void Run(v8::Isolate* isolate, | 80 void Run(v8::Isolate* isolate, |
81 const v8::Global<v8::Context>& context) override; | 81 const v8::Global<v8::Context>& context) override; |
82 | 82 |
83 private: | 83 private: |
84 v8::internal::Vector<uint16_t> expression_; | 84 v8::internal::Vector<uint16_t> expression_; |
85 v8::internal::Vector<const char> expression_utf8_; | 85 v8::internal::Vector<const char> expression_utf8_; |
86 v8::internal::Vector<uint16_t> name_; | 86 v8::internal::Vector<uint16_t> name_; |
87 int32_t line_offset_; | 87 int32_t line_offset_; |
88 int32_t column_offset_; | 88 int32_t column_offset_; |
| 89 bool report_async_; |
89 | 90 |
90 DISALLOW_COPY_AND_ASSIGN(ExecuteStringTask); | 91 DISALLOW_COPY_AND_ASSIGN(ExecuteStringTask); |
91 }; | 92 }; |
92 | 93 |
93 #endif // V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ | 94 #endif // V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
OLD | NEW |