| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 void ResetBlackboxedStateCache(Isolate* isolate, | 191 void ResetBlackboxedStateCache(Isolate* isolate, |
| 192 v8::Local<debug::Script> script); | 192 v8::Local<debug::Script> script); |
| 193 | 193 |
| 194 int EstimatedValueSize(Isolate* isolate, v8::Local<v8::Value> value); | 194 int EstimatedValueSize(Isolate* isolate, v8::Local<v8::Value> value); |
| 195 | 195 |
| 196 v8::MaybeLocal<v8::Array> EntriesPreview(Isolate* isolate, | 196 v8::MaybeLocal<v8::Array> EntriesPreview(Isolate* isolate, |
| 197 v8::Local<v8::Value> value, | 197 v8::Local<v8::Value> value, |
| 198 bool* is_key_value); | 198 bool* is_key_value); |
| 199 | 199 |
| 200 enum Builtin { |
| 201 kObjectKeys, |
| 202 kObjectGetPrototypeOf, |
| 203 kObjectGetOwnPropertyDescriptor, |
| 204 kObjectGetOwnPropertyNames, |
| 205 kObjectGetOwnPropertySymbols, |
| 206 }; |
| 207 |
| 208 Local<Function> GetBuiltin(Isolate* isolate, Builtin builtin); |
| 209 |
| 200 /** | 210 /** |
| 201 * Native wrapper around v8::internal::JSGeneratorObject object. | 211 * Native wrapper around v8::internal::JSGeneratorObject object. |
| 202 */ | 212 */ |
| 203 class GeneratorObject { | 213 class GeneratorObject { |
| 204 public: | 214 public: |
| 205 v8::MaybeLocal<debug::Script> Script(); | 215 v8::MaybeLocal<debug::Script> Script(); |
| 206 v8::Local<v8::Function> Function(); | 216 v8::Local<v8::Function> Function(); |
| 207 debug::Location SuspendedLocation(); | 217 debug::Location SuspendedLocation(); |
| 208 bool IsSuspended(); | 218 bool IsSuspended(); |
| 209 | 219 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 ~Coverage(); | 282 ~Coverage(); |
| 273 | 283 |
| 274 private: | 284 private: |
| 275 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 285 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
| 276 i::Coverage* coverage_; | 286 i::Coverage* coverage_; |
| 277 }; | 287 }; |
| 278 } // namespace debug | 288 } // namespace debug |
| 279 } // namespace v8 | 289 } // namespace v8 |
| 280 | 290 |
| 281 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 291 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |