Lines Matching defs:context

8 #include "include/v8-context.h"
12 #include "src/inspector/inspected-context.h"
43 v8::Local<v8::Context> context,
45 : m_inspector(inspector), m_context(context), m_prototype(prototype) {}
461 v8::Local<v8::Context> context =
464 context.IsEmpty() ? 0 : thisPtr->m_inspector->contextGroupId(context);
640 v8::Local<v8::Context> context, v8::Local<v8::Value> value,
660 if (!result->SetPrototype(context, v8::Null(m_isolate)).FromMaybe(false)) {
666 if (!addInternalObject(context, scope, V8InternalValueType::kScope))
705 createDataProperty(context, scope,
708 createDataProperty(context, scope,
710 createDataProperty(context, result, result->Length(), scope);
712 if (!addInternalObject(context, result, V8InternalValueType::kScopeList))
718 v8::Local<v8::Context> context, v8::Local<v8::Function> function) {
719 return getTargetScopes(context, function, FUNCTION);
723 v8::Local<v8::Context> context, v8::Local<v8::Value> generator) {
724 return getTargetScopes(context, generator, GENERATOR);
728 v8::Local<v8::Context> context, v8::Local<v8::Value> collection) {
729 v8::Isolate* isolate = context->GetIsolate();
740 if (!wrappedEntries->SetPrototype(context, v8::Null(isolate))
745 if (!entries->Get(context, i).ToLocal(&item)) continue;
747 if (isKeyValue && !entries->Get(context, i + 1).ToLocal(&value)) continue;
749 if (!wrapper->SetPrototype(context, v8::Null(isolate)).FromMaybe(false))
752 context, wrapper,
755 createDataProperty(context, wrapper,
758 if (!addInternalObject(context, wrapper, V8InternalValueType::kEntry))
760 createDataProperty(context, wrappedEntries, wrappedEntries->Length(),
767 v8::Local<v8::Context> context, v8::Local<v8::Value> value) {
772 if (collectionsEntries(context, value).ToLocal(&entries)) {
773 createDataProperty(context, properties, properties->Length(),
775 createDataProperty(context, properties, properties->Length(), entries);
779 if (generatorScopes(context, value).ToLocal(&scopes)) {
780 createDataProperty(context, properties, properties->Length(),
782 createDataProperty(context, properties, properties->Length(), scopes);
788 if (functionScopes(context, function).ToLocal(&scopes)) {
789 createDataProperty(context, properties, properties->Length(),
791 createDataProperty(context, properties, properties->Length(), scopes);
797 v8::Local<v8::Array> V8Debugger::queryObjects(v8::Local<v8::Context> context,
799 v8::Isolate* isolate = context->GetIsolate();
801 MatchPrototypePredicate predicate(m_inspector, context, prototype);
802 v8::debug::QueryObjects(context, &predicate, &v8Objects);
809 createDataProperty(context, resultArray, static_cast<int>(i),
834 // TODO(dgozman): ideally, this should be per context group.
1165 bool V8Debugger::addInternalObject(v8::Local<v8::Context> context,
1168 int contextId = InspectedContext::contextId(context);