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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 | 62 |
63 int nested_loop_count_; | 63 int nested_loop_count_; |
64 | 64 |
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 explicit ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression); | 72 explicit ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, |
dgozman
2016/11/04 18:26:49
No explicit.
kozy
2016/11/04 18:50:30
Done.
| |
73 v8::Local<v8::String> name, | |
74 v8::Local<v8::Integer> line_offset, | |
75 v8::Local<v8::Integer> column_offset); | |
73 explicit ExecuteStringTask( | 76 explicit ExecuteStringTask( |
74 const v8::internal::Vector<const char>& expression); | 77 const v8::internal::Vector<const char>& expression); |
75 bool is_inspector_task() override { return false; } | 78 bool is_inspector_task() override { return false; } |
76 | 79 |
77 void Run(v8::Isolate* isolate, | 80 void Run(v8::Isolate* isolate, |
78 const v8::Global<v8::Context>& context) override; | 81 const v8::Global<v8::Context>& context) override; |
79 | 82 |
80 private: | 83 private: |
81 v8::internal::Vector<uint16_t> expression_; | 84 v8::internal::Vector<uint16_t> expression_; |
82 v8::internal::Vector<const char> expression_utf8_; | 85 v8::internal::Vector<const char> expression_utf8_; |
86 v8::internal::Vector<uint16_t> name_; | |
87 int32_t line_offset_; | |
88 int32_t column_offset_; | |
83 | 89 |
84 DISALLOW_COPY_AND_ASSIGN(ExecuteStringTask); | 90 DISALLOW_COPY_AND_ASSIGN(ExecuteStringTask); |
85 }; | 91 }; |
86 | 92 |
87 #endif // V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ | 93 #endif // V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
OLD | NEW |