Home
last modified time | relevance | path

Searched refs:PythonObject (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.h66 class PythonObject; variable
225 T, typename std::enable_if<std::is_base_of<PythonObject, T>::value>::type> {
230 class PythonObject {
232 PythonObject() : m_py_obj(nullptr) {}
234 PythonObject(PyRefType type, PyObject *py_obj) {
244 PythonObject(const PythonObject &rhs)
245 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {}
247 PythonObject(PythonObject &&rhs) {
252 ~PythonObject() { Reset(); }
277 PythonObject &operator=(PythonObject other) {
[all …]
DPythonDataObjects.cpp37 template <> Expected<bool> python::As<bool>(Expected<PythonObject> &&obj) { in As()
44 Expected<long long> python::As<long long>(Expected<PythonObject> &&obj) { in As()
52 python::As<unsigned long long>(Expected<PythonObject> &&obj) { in As()
59 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) { in As()
72 Expected<long long> PythonObject::AsLongLong() const { in AsLongLong()
88 Expected<long long> PythonObject::AsUnsignedLongLong() const { in AsUnsignedLongLong()
105 Expected<unsigned long long> PythonObject::AsModuloUnsignedLongLong() const { in AsModuloUnsignedLongLong()
127 void PythonObject::Dump(Stream &strm) const { in Dump()
147 PyObjectType PythonObject::GetObjectType() const { in GetObjectType()
178 PythonString PythonObject::Repr() const { in Repr()
[all …]
DScriptInterpreterPython.cpp708 PythonObject &save_file, in SetStdHandle()
826 PythonObject &main_module = GetMainModule(); in GetSessionDictionary()
861 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( in GetMaxPositionalArgumentsForCallable()
894 PythonObject module(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects()
965 PythonObject pargs( in ExecuteOneLine()
969 PythonObject return_value( in ExecuteOneLine()
1068 Expected<PythonObject> maybe_py_return = in ExecuteOneLineWithReturn()
1087 PythonObject py_return = std::move(maybe_py_return.get()); in ExecuteOneLineWithReturn()
1181 Expected<PythonObject> return_value = in ExecuteMultipleLines()
1519 PythonObject implementor(PyRefType::Borrowed, in GetRecognizedArguments()
[all …]
DScriptInterpreterPythonImpl.h393 python::PythonObject &save_file, const char *mode);
395 python::PythonObject m_saved_stdin;
396 python::PythonObject m_saved_stdout;
397 python::PythonObject m_saved_stderr;
401 python::PythonObject m_run_one_line_function;
402 python::PythonObject m_run_one_line_str_global;
/external/llvm-project/lldb/bindings/python/
Dpython-wrapper.swig59 … auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>(python_function_name, dict);
67 PythonObject frame_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_frame));
68 PythonObject bp_loc_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_bp_loc));
70 auto result = [&] () -> Expected<PythonObject> {
76 PythonObject args_arg(PyRefType::Owned, SBTypeToSWIGWrapper(args_value));
108 … auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>(python_function_name, dict);
113 PythonObject frame_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_frame));
114 PythonObject wp_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_wp));
115 PythonObject result = pfunc(frame_arg, wp_arg, dict);
166 pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>(python_function_name, dict);
[all …]
Dpython-typemaps.swig69 PythonObject obj = Retain<PythonObject>($input);
77 PythonObject obj = Retain<PythonObject>($input);
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp58 PythonObject owned_long(PyRefType::Owned, obj); in TEST_F()
62 PythonObject strong_ref(owned_long); in TEST_F()
93 PythonObject sys_module = m_main_module.ResolveName("sys"); in TEST_F()
100 PythonObject sys_path = m_sys_module.ResolveName("path"); in TEST_F()
101 PythonObject sys_version_info = m_sys_module.ResolveName("version_info"); in TEST_F()
109 PythonObject sys_version_info = m_sys_module.ResolveName("version_info"); in TEST_F()
111 PythonObject version_info_type(PyRefType::Owned, in TEST_F()
114 PythonObject major_version_field = version_info_type.ResolveName("major"); in TEST_F()
119 PythonObject sys_version_info = m_sys_module.ResolveName("version_info"); in TEST_F()
120 PythonObject major_version_field = sys_version_info.ResolveName("major"); in TEST_F()
[all …]