• Home
  • Raw
  • Download

Lines Matching refs:v8

31     v8::Isolate* isolate, const v8::debug::ConsoleContext& consoleContext) {  in consoleContextToString()
39 ConsoleHelper(const v8::debug::ConsoleCallArguments& info, in ConsoleHelper()
40 const v8::debug::ConsoleContext& consoleContext, in ConsoleHelper()
72 std::vector<v8::Local<v8::Value>> arguments; in reportCall()
80 std::vector<v8::Local<v8::Value>> arguments; in reportCallWithDefaultArgument()
89 std::vector<v8::Local<v8::Value>> arguments; in reportCallAndReplaceFirstArgument()
96 std::vector<v8::Local<v8::Value>> arguments(1, in reportCallWithArgument()
102 const std::vector<v8::Local<v8::Value>>& arguments) { in reportCall()
118 std::vector<v8::Local<v8::Value>> arguments(1, in reportDeprecatedCall()
125 if (m_info[0]->IsBoolean()) return m_info[0].As<v8::Boolean>()->Value(); in firstArgToBoolean()
134 v8::Local<v8::String> titleValue; in firstArgToString()
140 v8::MaybeLocal<v8::Object> firstArgAsObject() { in firstArgAsObject()
142 return v8::MaybeLocal<v8::Object>(); in firstArgAsObject()
143 return m_info[0].As<v8::Object>(); in firstArgAsObject()
146 v8::MaybeLocal<v8::Function> firstArgAsFunction() { in firstArgAsFunction()
148 return v8::MaybeLocal<v8::Function>(); in firstArgAsFunction()
149 v8::Local<v8::Function> func = m_info[0].As<v8::Function>(); in firstArgAsFunction()
151 func = func->GetBoundFunction().As<v8::Function>(); in firstArgAsFunction()
160 const v8::debug::ConsoleCallArguments& m_info;
161 const v8::debug::ConsoleContext& m_consoleContext;
162 v8::Isolate* m_isolate;
163 v8::Local<v8::Context> m_context;
170 v8::Local<v8::Context> context, v8::Local<v8::Object> console, in createBoundFunctionProperty()
171 v8::Local<v8::Value> data, const char* name, v8::FunctionCallback callback, in createBoundFunctionProperty()
172 v8::SideEffectType side_effect_type = v8::SideEffectType::kHasSideEffect) { in createBoundFunctionProperty()
173 v8::Local<v8::String> funcName = in createBoundFunctionProperty()
175 v8::Local<v8::Function> func; in createBoundFunctionProperty()
176 if (!v8::Function::New(context, callback, data, 0, in createBoundFunctionProperty()
177 v8::ConstructorBehavior::kThrow, side_effect_type) in createBoundFunctionProperty()
190 void V8Console::Debug(const v8::debug::ConsoleCallArguments& info, in Debug()
191 const v8::debug::ConsoleContext& consoleContext) { in Debug()
197 void V8Console::Error(const v8::debug::ConsoleCallArguments& info, in Error()
198 const v8::debug::ConsoleContext& consoleContext) { in Error()
204 void V8Console::Info(const v8::debug::ConsoleCallArguments& info, in Info()
205 const v8::debug::ConsoleContext& consoleContext) { in Info()
211 void V8Console::Log(const v8::debug::ConsoleCallArguments& info, in Log()
212 const v8::debug::ConsoleContext& consoleContext) { in Log()
218 void V8Console::Warn(const v8::debug::ConsoleCallArguments& info, in Warn()
219 const v8::debug::ConsoleContext& consoleContext) { in Warn()
225 void V8Console::Dir(const v8::debug::ConsoleCallArguments& info, in Dir()
226 const v8::debug::ConsoleContext& consoleContext) { in Dir()
232 void V8Console::DirXml(const v8::debug::ConsoleCallArguments& info, in DirXml()
233 const v8::debug::ConsoleContext& consoleContext) { in DirXml()
239 void V8Console::Table(const v8::debug::ConsoleCallArguments& info, in Table()
240 const v8::debug::ConsoleContext& consoleContext) { in Table()
246 void V8Console::Trace(const v8::debug::ConsoleCallArguments& info, in Trace()
247 const v8::debug::ConsoleContext& consoleContext) { in Trace()
254 void V8Console::Group(const v8::debug::ConsoleCallArguments& info, in Group()
255 const v8::debug::ConsoleContext& consoleContext) { in Group()
263 const v8::debug::ConsoleCallArguments& info, in GroupCollapsed()
264 const v8::debug::ConsoleContext& consoleContext) { in GroupCollapsed()
272 void V8Console::GroupEnd(const v8::debug::ConsoleCallArguments& info, in GroupEnd()
273 const v8::debug::ConsoleContext& consoleContext) { in GroupEnd()
281 void V8Console::Clear(const v8::debug::ConsoleCallArguments& info, in Clear()
282 const v8::debug::ConsoleContext& consoleContext) { in Clear()
293 const v8::debug::ConsoleContext& consoleContext, in identifierFromTitleOrStackTrace()
312 void V8Console::Count(const v8::debug::ConsoleCallArguments& info, in Count()
313 const v8::debug::ConsoleContext& consoleContext) { in Count()
332 void V8Console::CountReset(const v8::debug::ConsoleCallArguments& info, in CountReset()
333 const v8::debug::ConsoleContext& consoleContext) { in CountReset()
351 void V8Console::Assert(const v8::debug::ConsoleCallArguments& info, in Assert()
352 const v8::debug::ConsoleContext& consoleContext) { in Assert()
357 std::vector<v8::Local<v8::Value>> arguments; in Assert()
366 void V8Console::Profile(const v8::debug::ConsoleCallArguments& info, in Profile()
367 const v8::debug::ConsoleContext& consoleContext) { in Profile()
380 void V8Console::ProfileEnd(const v8::debug::ConsoleCallArguments& info, in ProfileEnd()
381 const v8::debug::ConsoleContext& consoleContext) { in ProfileEnd()
394 static void timeFunction(const v8::debug::ConsoleCallArguments& info, in timeFunction()
395 const v8::debug::ConsoleContext& consoleContext, in timeFunction()
413 static void timeEndFunction(const v8::debug::ConsoleCallArguments& info, in timeEndFunction()
414 const v8::debug::ConsoleContext& consoleContext, in timeEndFunction()
446 void V8Console::Time(const v8::debug::ConsoleCallArguments& info, in Time()
447 const v8::debug::ConsoleContext& consoleContext) { in Time()
452 void V8Console::TimeLog(const v8::debug::ConsoleCallArguments& info, in TimeLog()
453 const v8::debug::ConsoleContext& consoleContext) { in TimeLog()
458 void V8Console::TimeEnd(const v8::debug::ConsoleCallArguments& info, in TimeEnd()
459 const v8::debug::ConsoleContext& consoleContext) { in TimeEnd()
464 void V8Console::TimeStamp(const v8::debug::ConsoleCallArguments& info, in TimeStamp()
465 const v8::debug::ConsoleContext& consoleContext) { in TimeStamp()
474 const v8::FunctionCallbackInfo<v8::Value>& info) { in memoryGetterCallback()
475 v8::Local<v8::Value> memoryValue; in memoryGetterCallback()
485 const v8::FunctionCallbackInfo<v8::Value>& info) { in memorySetterCallback()
491 v8::Maybe<int64_t> V8Console::ValidateAndGetTaskId( in ValidateAndGetTaskId()
492 const v8::FunctionCallbackInfo<v8::Value>& info) { in ValidateAndGetTaskId()
495 return v8::Nothing<int64_t>(); in ValidateAndGetTaskId()
500 !v8::Just(info[0].As<v8::Integer>()->Value()).To(&argId)) { in ValidateAndGetTaskId()
502 return v8::Nothing<int64_t>(); in ValidateAndGetTaskId()
508 return v8::Nothing<int64_t>(); in ValidateAndGetTaskId()
511 return v8::Just(argId); in ValidateAndGetTaskId()
515 const v8::FunctionCallbackInfo<v8::Value>& info) { in scheduleAsyncTask()
525 v8::debug::ConsoleCallArguments args(info); in scheduleAsyncTask()
526 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in scheduleAsyncTask()
529 info.Length() == 2 ? info[1].As<v8::Boolean>()->Value() : false; in scheduleAsyncTask()
546 info.GetReturnValue().Set(v8::Number::New(info.GetIsolate(), id)); in scheduleAsyncTask()
550 const v8::FunctionCallbackInfo<v8::Value>& info) { in startAsyncTask()
551 v8::Maybe<int64_t> maybeArgId = ValidateAndGetTaskId(info); in startAsyncTask()
560 const v8::FunctionCallbackInfo<v8::Value>& info) { in finishAsyncTask()
561 v8::Maybe<int64_t> maybeArgId = ValidateAndGetTaskId(info); in finishAsyncTask()
577 const v8::FunctionCallbackInfo<v8::Value>& info) { in cancelAsyncTask()
578 v8::Maybe<int64_t> maybeArgId = ValidateAndGetTaskId(info); in cancelAsyncTask()
589 void V8Console::keysCallback(const v8::FunctionCallbackInfo<v8::Value>& info, in keysCallback()
591 v8::Isolate* isolate = info.GetIsolate(); in keysCallback()
592 info.GetReturnValue().Set(v8::Array::New(isolate)); in keysCallback()
594 v8::debug::ConsoleCallArguments args(info); in keysCallback()
595 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in keysCallback()
596 v8::Local<v8::Object> obj; in keysCallback()
598 v8::Local<v8::Array> names; in keysCallback()
604 void V8Console::valuesCallback(const v8::FunctionCallbackInfo<v8::Value>& info, in valuesCallback()
606 v8::Isolate* isolate = info.GetIsolate(); in valuesCallback()
607 info.GetReturnValue().Set(v8::Array::New(isolate)); in valuesCallback()
609 v8::debug::ConsoleCallArguments args(info); in valuesCallback()
610 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in valuesCallback()
611 v8::Local<v8::Object> obj; in valuesCallback()
613 v8::Local<v8::Array> names; in valuesCallback()
614 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in valuesCallback()
616 v8::Local<v8::Array> values = v8::Array::New(isolate, names->Length()); in valuesCallback()
618 v8::Local<v8::Value> key; in valuesCallback()
620 v8::Local<v8::Value> value; in valuesCallback()
628 v8::Local<v8::Function> function, in setFunctionBreakpoint()
630 v8::Local<v8::String> condition, in setFunctionBreakpoint()
643 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in debugFunctionCallback()
644 v8::debug::ConsoleCallArguments args(info); in debugFunctionCallback()
645 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in debugFunctionCallback()
646 v8::Local<v8::Function> function; in debugFunctionCallback()
647 v8::Local<v8::String> condition; in debugFunctionCallback()
650 condition = args[1].As<v8::String>(); in debugFunctionCallback()
658 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in undebugFunctionCallback()
659 v8::debug::ConsoleCallArguments args(info); in undebugFunctionCallback()
660 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in undebugFunctionCallback()
661 v8::Local<v8::Function> function; in undebugFunctionCallback()
665 v8::Local<v8::String>(), false); in undebugFunctionCallback()
669 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in monitorFunctionCallback()
670 v8::debug::ConsoleCallArguments args(info); in monitorFunctionCallback()
671 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in monitorFunctionCallback()
672 v8::Local<v8::Function> function; in monitorFunctionCallback()
674 v8::Local<v8::Value> name = function->GetName(); in monitorFunctionCallback()
675 if (!name->IsString() || !name.As<v8::String>()->Length()) in monitorFunctionCallback()
696 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in unmonitorFunctionCallback()
697 v8::debug::ConsoleCallArguments args(info); in unmonitorFunctionCallback()
698 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in unmonitorFunctionCallback()
699 v8::Local<v8::Function> function; in unmonitorFunctionCallback()
703 v8::Local<v8::String>(), false); in unmonitorFunctionCallback()
707 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in lastEvaluationResultCallback()
708 v8::debug::ConsoleCallArguments args(info); in lastEvaluationResultCallback()
709 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in lastEvaluationResultCallback()
715 static void inspectImpl(const v8::FunctionCallbackInfo<v8::Value>& info, in inspectImpl()
716 v8::Local<v8::Value> value, int sessionId, in inspectImpl()
720 v8::debug::ConsoleCallArguments args(info); in inspectImpl()
721 ConsoleHelper helper(args, v8::debug::ConsoleContext(), inspector); in inspectImpl()
742 void V8Console::inspectCallback(const v8::FunctionCallbackInfo<v8::Value>& info, in inspectCallback()
748 void V8Console::copyCallback(const v8::FunctionCallbackInfo<v8::Value>& info, in copyCallback()
755 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in queryObjectsCallback()
757 v8::Local<v8::Value> arg = info[0]; in queryObjectsCallback()
759 v8::Isolate* isolate = info.GetIsolate(); in queryObjectsCallback()
760 v8::TryCatch tryCatch(isolate); in queryObjectsCallback()
761 v8::Local<v8::Value> prototype; in queryObjectsCallback()
762 if (arg.As<v8::Function>() in queryObjectsCallback()
777 void V8Console::inspectedObject(const v8::FunctionCallbackInfo<v8::Value>& info, in inspectedObject()
780 v8::debug::ConsoleCallArguments args(info); in inspectedObject()
781 ConsoleHelper helper(args, v8::debug::ConsoleContext(), m_inspector); in inspectedObject()
784 v8::Isolate* isolate = info.GetIsolate(); in inspectedObject()
788 info.GetReturnValue().Set(v8::Undefined(isolate)); in inspectedObject()
792 void V8Console::installMemoryGetter(v8::Local<v8::Context> context, in installMemoryGetter()
793 v8::Local<v8::Object> console) { in installMemoryGetter()
794 v8::Isolate* isolate = context->GetIsolate(); in installMemoryGetter()
795 v8::Local<v8::External> data = v8::External::New(isolate, this); in installMemoryGetter()
798 v8::Function::New( in installMemoryGetter()
800 v8::ConstructorBehavior::kThrow, v8::SideEffectType::kHasNoSideEffect) in installMemoryGetter()
802 v8::Function::New(context, in installMemoryGetter()
804 data, 0, v8::ConstructorBehavior::kThrow) in installMemoryGetter()
806 static_cast<v8::PropertyAttribute>(v8::None), v8::DEFAULT); in installMemoryGetter()
809 void V8Console::installAsyncStackTaggingAPI(v8::Local<v8::Context> context, in installAsyncStackTaggingAPI()
810 v8::Local<v8::Object> console) { in installAsyncStackTaggingAPI()
811 v8::Isolate* isolate = context->GetIsolate(); in installAsyncStackTaggingAPI()
812 v8::Local<v8::External> data = v8::External::New(isolate, this); in installAsyncStackTaggingAPI()
814 v8::MicrotasksScope microtasksScope(isolate, in installAsyncStackTaggingAPI()
815 v8::MicrotasksScope::kDoNotRunMicrotasks); in installAsyncStackTaggingAPI()
819 v8::Function::New(context, in installAsyncStackTaggingAPI()
821 data, 0, v8::ConstructorBehavior::kThrow, in installAsyncStackTaggingAPI()
822 v8::SideEffectType::kHasSideEffect) in installAsyncStackTaggingAPI()
827 v8::Function::New(context, in installAsyncStackTaggingAPI()
829 data, 0, v8::ConstructorBehavior::kThrow, in installAsyncStackTaggingAPI()
830 v8::SideEffectType::kHasSideEffect) in installAsyncStackTaggingAPI()
835 v8::Function::New(context, in installAsyncStackTaggingAPI()
837 data, 0, v8::ConstructorBehavior::kThrow, in installAsyncStackTaggingAPI()
838 v8::SideEffectType::kHasSideEffect) in installAsyncStackTaggingAPI()
843 v8::Function::New(context, in installAsyncStackTaggingAPI()
845 data, 0, v8::ConstructorBehavior::kThrow, in installAsyncStackTaggingAPI()
846 v8::SideEffectType::kHasSideEffect) in installAsyncStackTaggingAPI()
851 v8::Local<v8::Object> V8Console::createCommandLineAPI( in createCommandLineAPI()
852 v8::Local<v8::Context> context, int sessionId) { in createCommandLineAPI()
853 v8::Isolate* isolate = context->GetIsolate(); in createCommandLineAPI()
854 v8::MicrotasksScope microtasksScope(isolate, in createCommandLineAPI()
855 v8::MicrotasksScope::kDoNotRunMicrotasks); in createCommandLineAPI()
857 v8::Local<v8::Object> commandLineAPI = v8::Object::New(isolate); in createCommandLineAPI()
859 commandLineAPI->SetPrototype(context, v8::Null(isolate)).FromMaybe(false); in createCommandLineAPI()
863 v8::Local<v8::ArrayBuffer> data = in createCommandLineAPI()
864 v8::ArrayBuffer::New(isolate, sizeof(CommandLineAPIData)); in createCommandLineAPI()
882 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
885 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
908 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
911 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
914 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
917 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
920 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
923 v8::SideEffectType::kHasNoSideEffect); in createCommandLineAPI()
938 v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in accessorGetterCallback()
940 info.Data().As<v8::ArrayBuffer>()->GetBackingStore()->Data()); in accessorGetterCallback()
941 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in accessorGetterCallback()
946 v8::Local<v8::Object> commandLineAPI = scope->m_commandLineAPI; in accessorGetterCallback()
948 v8::Local<v8::Value> value; in accessorGetterCallback()
953 v8::MicrotasksScope microtasks(info.GetIsolate(), in accessorGetterCallback()
954 v8::MicrotasksScope::kDoNotRunMicrotasks); in accessorGetterCallback()
955 if (value.As<v8::Function>() in accessorGetterCallback()
965 v8::Local<v8::Name> name, v8::Local<v8::Value> value, in accessorSetterCallback()
966 const v8::PropertyCallbackInfo<void>& info) { in accessorSetterCallback()
968 info.Data().As<v8::ArrayBuffer>()->GetBackingStore()->Data()); in accessorSetterCallback()
970 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in accessorSetterCallback()
978 v8::Local<v8::Context> context, v8::Local<v8::Object> commandLineAPI, in CommandLineAPIScope()
979 v8::Local<v8::Object> global) in CommandLineAPIScope()
983 m_installedMethods(v8::Set::New(context->GetIsolate())) { in CommandLineAPIScope()
984 v8::MicrotasksScope microtasksScope(context->GetIsolate(), in CommandLineAPIScope()
985 v8::MicrotasksScope::kDoNotRunMicrotasks); in CommandLineAPIScope()
986 v8::Local<v8::Array> names; in CommandLineAPIScope()
989 v8::ArrayBuffer::New(context->GetIsolate(), sizeof(CommandLineAPIScope*)); in CommandLineAPIScope()
993 v8::Local<v8::Value> name; in CommandLineAPIScope()
999 ->SetAccessor(context, name.As<v8::Name>(), in CommandLineAPIScope()
1002 m_thisReference, v8::DEFAULT, v8::DontEnum, in CommandLineAPIScope()
1003 v8::SideEffectType::kHasNoSideEffect) in CommandLineAPIScope()
1014 v8::MicrotasksScope microtasksScope(m_context->GetIsolate(), in ~CommandLineAPIScope()
1015 v8::MicrotasksScope::kDoNotRunMicrotasks); in ~CommandLineAPIScope()
1018 v8::Local<v8::Array> names = m_installedMethods->AsArray(); in ~CommandLineAPIScope()
1020 v8::Local<v8::Value> name; in ~CommandLineAPIScope()
1023 v8::Local<v8::Value> descriptor; in ~CommandLineAPIScope()
1025 m_global->GetOwnPropertyDescriptor(m_context, name.As<v8::String>()) in ~CommandLineAPIScope()