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_DEBUG_DEBUG_INTERFACE_H_ | 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ |
6 #define V8_DEBUG_DEBUG_INTERFACE_H_ | 6 #define V8_DEBUG_DEBUG_INTERFACE_H_ |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "include/v8-debug.h" | 10 #include "include/v8-debug.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 void ResetBlackboxedStateCache(Isolate* isolate, | 176 void ResetBlackboxedStateCache(Isolate* isolate, |
177 v8::Local<debug::Script> script); | 177 v8::Local<debug::Script> script); |
178 | 178 |
179 int EstimatedValueSize(Isolate* isolate, v8::Local<v8::Value> value); | 179 int EstimatedValueSize(Isolate* isolate, v8::Local<v8::Value> value); |
180 | 180 |
181 v8::MaybeLocal<v8::Array> EntriesPreview(Isolate* isolate, | 181 v8::MaybeLocal<v8::Array> EntriesPreview(Isolate* isolate, |
182 v8::Local<v8::Value> value, | 182 v8::Local<v8::Value> value, |
183 bool* is_key_value); | 183 bool* is_key_value); |
184 | 184 |
| 185 /** |
| 186 * Native wrapper around v8::internal::JSGeneratorObject object. |
| 187 */ |
| 188 class GeneratorObject { |
| 189 public: |
| 190 v8::MaybeLocal<debug::Script> Script(); |
| 191 v8::Local<v8::Function> Function(); |
| 192 debug::Location SuspendedLocation(); |
| 193 bool IsSuspended(); |
| 194 |
| 195 static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value); |
| 196 }; |
| 197 |
185 } // namespace debug | 198 } // namespace debug |
186 } // namespace v8 | 199 } // namespace v8 |
187 | 200 |
188 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 201 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |