|
8 | 8 | #include "include/v8-context.h"
|
9 | 9 | #include "include/v8-function.h"
|
10 | 10 | #include "include/v8-microtask-queue.h"
|
| 11 | +#include "include/v8-profiler.h" |
11 | 12 | #include "include/v8-util.h"
|
12 | 13 | #include "src/inspector/inspected-context.h"
|
13 | 14 | #include "src/inspector/protocol/Protocol.h"
|
@@ -38,7 +39,7 @@ void cleanupExpiredWeakPointers(Map& map) {
|
38 | 39 | }
|
39 | 40 | }
|
40 | 41 |
|
41 |
| -class MatchPrototypePredicate : public v8::debug::QueryObjectPredicate { |
| 42 | +class MatchPrototypePredicate : public v8::QueryObjectPredicate { |
42 | 43 | public:
|
43 | 44 | MatchPrototypePredicate(V8InspectorImpl* inspector,
|
44 | 45 | v8::Local<v8::Context> context,
|
@@ -994,7 +995,7 @@ v8::Local<v8::Array> V8Debugger::queryObjects(v8::Local<v8::Context> context,
|
994 | 995 | v8::Isolate* isolate = context->GetIsolate();
|
995 | 996 | std::vector<v8::Global<v8::Object>> v8_objects;
|
996 | 997 | MatchPrototypePredicate predicate(m_inspector, context, prototype);
|
997 |
| - v8::debug::QueryObjects(context, &predicate, &v8_objects); |
| 998 | + isolate->GetHeapProfiler()->QueryObjects(context, &predicate, &v8_objects); |
998 | 999 |
|
999 | 1000 | v8::MicrotasksScope microtasksScope(context,
|
1000 | 1001 | v8::MicrotasksScope::kDoNotRunMicrotasks);
|
|
0 commit comments