Mercurial > octave
comparison libinterp/parse-tree/pt-eval.cc @ 33435:066a27297ba3 bytecode-interpreter
maint: Merge default to bytecode-interpreter
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Fri, 19 Apr 2024 12:57:20 -0400 |
parents | e6806f30226a 83352d86f20d |
children | 662938d6b684 |
comparison
equal
deleted
inserted
replaced
33430:e4e172cb662c | 33435:066a27297ba3 |
---|---|
3061 | 3061 |
3062 // fcn = cdm.find_method_symbol (method, dispatch_type); | 3062 // fcn = cdm.find_method_symbol (method, dispatch_type); |
3063 | 3063 |
3064 cdef_class cls = cdm.find_class (dispatch_type, false); | 3064 cdef_class cls = cdm.find_class (dispatch_type, false); |
3065 if (cls.ok () && cls.get_name () == dispatch_type) | 3065 if (cls.ok () && cls.get_name () == dispatch_type) |
3066 fcn = cls.find_method (method).get_function (); | 3066 { |
3067 cdef_method meth = cls.find_method (method); | |
3068 if (meth.ok () && meth.get_name () == method) | |
3069 fcn = meth.get_function (); | |
3070 else | |
3071 return nullptr; | |
3072 } | |
3067 | 3073 |
3068 // If there is no classdef method, then try legacy classes. | 3074 // If there is no classdef method, then try legacy classes. |
3069 if (fcn.is_undefined ()) | 3075 if (fcn.is_undefined ()) |
3070 fcn = symtab.find_method (method, dispatch_type); | 3076 fcn = symtab.find_method (method, dispatch_type); |
3071 } | 3077 } |