José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 1 | ########################################################################## |
| 2 | # |
| 3 | # Copyright 2010 VMware, Inc. |
| 4 | # All Rights Reserved. |
| 5 | # |
| 6 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | # of this software and associated documentation files (the "Software"), to deal |
| 8 | # in the Software without restriction, including without limitation the rights |
| 9 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | # copies of the Software, and to permit persons to whom the Software is |
| 11 | # furnished to do so, subject to the following conditions: |
| 12 | # |
| 13 | # The above copyright notice and this permission notice shall be included in |
| 14 | # all copies or substantial portions of the Software. |
| 15 | # |
| 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 22 | # THE SOFTWARE. |
| 23 | # |
| 24 | ##########################################################################/ |
| 25 | |
| 26 | |
José Fonseca | 4a826ed | 2010-11-30 16:58:22 +0000 | [diff] [blame] | 27 | """Generic retracing code generator.""" |
| 28 | |
José Fonseca | 0a37edf | 2011-10-09 09:45:22 +0100 | [diff] [blame^] | 29 | |
| 30 | import sys |
| 31 | |
José Fonseca | bd86a22 | 2011-09-27 09:21:38 +0100 | [diff] [blame] | 32 | import specs.stdapi as stdapi |
| 33 | import specs.glapi as glapi |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 34 | |
| 35 | |
| 36 | class ConstRemover(stdapi.Rebuilder): |
| 37 | |
| 38 | def visit_const(self, const): |
| 39 | return const.type |
| 40 | |
| 41 | def visit_opaque(self, opaque): |
José Fonseca | f01b7f5 | 2011-04-20 21:09:28 +0100 | [diff] [blame] | 42 | return opaque |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 43 | |
| 44 | |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 45 | def handle_entry(handle, value): |
| 46 | if handle.key is None: |
| 47 | return "__%s_map[%s]" % (handle.name, value) |
| 48 | else: |
| 49 | key_name, key_type = handle.key |
| 50 | return "__%s_map[%s][%s]" % (handle.name, key_name, value) |
| 51 | |
| 52 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 53 | class ValueExtractor(stdapi.Visitor): |
| 54 | |
| 55 | def visit_literal(self, literal, lvalue, rvalue): |
José Fonseca | 56e093c | 2011-05-07 01:09:19 +0100 | [diff] [blame] | 56 | #if literal.format in ('Bool', 'UInt'): |
| 57 | print ' %s = (%s).to%s();' % (lvalue, rvalue, literal.format) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 58 | |
| 59 | def visit_const(self, const, lvalue, rvalue): |
| 60 | self.visit(const.type, lvalue, rvalue) |
| 61 | |
| 62 | def visit_alias(self, alias, lvalue, rvalue): |
| 63 | self.visit(alias.type, lvalue, rvalue) |
| 64 | |
| 65 | def visit_enum(self, enum, lvalue, rvalue): |
José Fonseca | 56e093c | 2011-05-07 01:09:19 +0100 | [diff] [blame] | 66 | print ' %s = (%s).toSInt();' % (lvalue, rvalue) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 67 | |
| 68 | def visit_bitmask(self, bitmask, lvalue, rvalue): |
| 69 | self.visit(bitmask.type, lvalue, rvalue) |
| 70 | |
| 71 | def visit_array(self, array, lvalue, rvalue): |
| 72 | print ' const Trace::Array *__a%s = dynamic_cast<const Trace::Array *>(&%s);' % (array.id, rvalue) |
| 73 | print ' if (__a%s) {' % (array.id) |
| 74 | length = '__a%s->values.size()' % array.id |
José Fonseca | e7c7d64 | 2011-10-05 08:05:26 +0100 | [diff] [blame] | 75 | print ' %s = new %s[%s];' % (lvalue, array.type, length) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 76 | index = '__j' + array.id |
José Fonseca | dbaae49 | 2011-04-21 09:28:10 +0100 | [diff] [blame] | 77 | print ' for (size_t {i} = 0; {i} < {length}; ++{i}) {{'.format(i = index, length = length) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 78 | try: |
| 79 | self.visit(array.type, '%s[%s]' % (lvalue, index), '*__a%s->values[%s]' % (array.id, index)) |
| 80 | finally: |
| 81 | print ' }' |
| 82 | print ' } else {' |
| 83 | print ' %s = NULL;' % lvalue |
| 84 | print ' }' |
| 85 | |
| 86 | def visit_pointer(self, pointer, lvalue, rvalue): |
| 87 | print ' const Trace::Array *__a%s = dynamic_cast<const Trace::Array *>(&%s);' % (pointer.id, rvalue) |
| 88 | print ' if (__a%s) {' % (pointer.id) |
José Fonseca | e7c7d64 | 2011-10-05 08:05:26 +0100 | [diff] [blame] | 89 | print ' %s = new %s;' % (lvalue, pointer.type) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 90 | try: |
| 91 | self.visit(pointer.type, '%s[0]' % (lvalue,), '*__a%s->values[0]' % (pointer.id,)) |
| 92 | finally: |
| 93 | print ' } else {' |
| 94 | print ' %s = NULL;' % lvalue |
| 95 | print ' }' |
| 96 | |
| 97 | def visit_handle(self, handle, lvalue, rvalue): |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 98 | OpaqueValueExtractor().visit(handle.type, lvalue, rvalue); |
| 99 | new_lvalue = handle_entry(handle, lvalue) |
José Fonseca | 031b738 | 2011-05-10 20:36:40 +0100 | [diff] [blame] | 100 | print ' if (retrace::verbosity >= 2) {' |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 101 | print ' std::cout << "%s " << size_t(%s) << " <- " << size_t(%s) << "\\n";' % (handle.name, lvalue, new_lvalue) |
José Fonseca | 031b738 | 2011-05-10 20:36:40 +0100 | [diff] [blame] | 102 | print ' }' |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 103 | print ' %s = %s;' % (lvalue, new_lvalue) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 104 | |
| 105 | def visit_blob(self, blob, lvalue, rvalue): |
José Fonseca | 7ebb9e2 | 2011-05-06 09:58:45 +0100 | [diff] [blame] | 106 | print ' %s = static_cast<%s>((%s).toPointer());' % (lvalue, blob, rvalue) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 107 | |
| 108 | def visit_string(self, string, lvalue, rvalue): |
José Fonseca | 7ebb9e2 | 2011-05-06 09:58:45 +0100 | [diff] [blame] | 109 | print ' %s = (%s)((%s).toString());' % (lvalue, string.expr, rvalue) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 110 | |
| 111 | |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 112 | class OpaqueValueExtractor(ValueExtractor): |
| 113 | '''Value extractor that also understands opaque values. |
| 114 | |
| 115 | Normally opaque values can't be retraced, unless they are being extracted |
| 116 | in the context of handles.''' |
| 117 | |
| 118 | def visit_opaque(self, opaque, lvalue, rvalue): |
José Fonseca | 7ebb9e2 | 2011-05-06 09:58:45 +0100 | [diff] [blame] | 119 | print ' %s = static_cast<%s>((%s).toPointer());' % (lvalue, opaque, rvalue) |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 120 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 121 | |
| 122 | class ValueWrapper(stdapi.Visitor): |
| 123 | |
| 124 | def visit_literal(self, literal, lvalue, rvalue): |
| 125 | pass |
| 126 | |
| 127 | def visit_alias(self, alias, lvalue, rvalue): |
| 128 | self.visit(alias.type, lvalue, rvalue) |
| 129 | |
| 130 | def visit_enum(self, enum, lvalue, rvalue): |
| 131 | pass |
| 132 | |
| 133 | def visit_bitmask(self, bitmask, lvalue, rvalue): |
| 134 | pass |
| 135 | |
| 136 | def visit_array(self, array, lvalue, rvalue): |
| 137 | print ' const Trace::Array *__a%s = dynamic_cast<const Trace::Array *>(&%s);' % (array.id, rvalue) |
| 138 | print ' if (__a%s) {' % (array.id) |
| 139 | length = '__a%s->values.size()' % array.id |
| 140 | index = '__j' + array.id |
José Fonseca | dbaae49 | 2011-04-21 09:28:10 +0100 | [diff] [blame] | 141 | print ' for (size_t {i} = 0; {i} < {length}; ++{i}) {{'.format(i = index, length = length) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 142 | try: |
| 143 | self.visit(array.type, '%s[%s]' % (lvalue, index), '*__a%s->values[%s]' % (array.id, index)) |
| 144 | finally: |
| 145 | print ' }' |
| 146 | print ' }' |
| 147 | |
| 148 | def visit_pointer(self, pointer, lvalue, rvalue): |
| 149 | print ' const Trace::Array *__a%s = dynamic_cast<const Trace::Array *>(&%s);' % (pointer.id, rvalue) |
| 150 | print ' if (__a%s) {' % (pointer.id) |
| 151 | try: |
| 152 | self.visit(pointer.type, '%s[0]' % (lvalue,), '*__a%s->values[0]' % (pointer.id,)) |
| 153 | finally: |
| 154 | print ' }' |
| 155 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 156 | def visit_handle(self, handle, lvalue, rvalue): |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 157 | print ' %s __orig_result;' % handle.type |
| 158 | OpaqueValueExtractor().visit(handle.type, '__orig_result', rvalue); |
José Fonseca | d922e1d | 2010-11-25 17:14:02 +0000 | [diff] [blame] | 159 | if handle.range is None: |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 160 | rvalue = "__orig_result" |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 161 | entry = handle_entry(handle, rvalue) |
| 162 | print " %s = %s;" % (entry, lvalue) |
José Fonseca | 031b738 | 2011-05-10 20:36:40 +0100 | [diff] [blame] | 163 | print ' if (retrace::verbosity >= 2) {' |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 164 | print ' std::cout << "{handle.name} " << {rvalue} << " -> " << {lvalue} << "\\n";'.format(**locals()) |
José Fonseca | 031b738 | 2011-05-10 20:36:40 +0100 | [diff] [blame] | 165 | print ' }' |
José Fonseca | d922e1d | 2010-11-25 17:14:02 +0000 | [diff] [blame] | 166 | else: |
| 167 | i = '__h' + handle.id |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 168 | lvalue = "%s + %s" % (lvalue, i) |
José Fonseca | a10af89 | 2011-04-11 09:10:55 +0100 | [diff] [blame] | 169 | rvalue = "__orig_result + %s" % (i,) |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 170 | entry = handle_entry(handle, rvalue) |
José Fonseca | dbaae49 | 2011-04-21 09:28:10 +0100 | [diff] [blame] | 171 | print ' for ({handle.type} {i} = 0; {i} < {handle.range}; ++{i}) {{'.format(**locals()) |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 172 | print ' {entry} = {lvalue};'.format(**locals()) |
José Fonseca | 031b738 | 2011-05-10 20:36:40 +0100 | [diff] [blame] | 173 | print ' if (retrace::verbosity >= 2) {' |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 174 | print ' std::cout << "{handle.name} " << ({rvalue}) << " -> " << ({lvalue}) << "\\n";'.format(**locals()) |
José Fonseca | 031b738 | 2011-05-10 20:36:40 +0100 | [diff] [blame] | 175 | print ' }' |
José Fonseca | d922e1d | 2010-11-25 17:14:02 +0000 | [diff] [blame] | 176 | print ' }' |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 177 | |
| 178 | def visit_blob(self, blob, lvalue, rvalue): |
| 179 | pass |
| 180 | |
| 181 | def visit_string(self, string, lvalue, rvalue): |
| 182 | pass |
| 183 | |
| 184 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 185 | class Retracer: |
| 186 | |
| 187 | def retrace_function(self, function): |
| 188 | print 'static void retrace_%s(Trace::Call &call) {' % function.name |
José Fonseca | 6221297 | 2011-03-23 13:22:55 +0000 | [diff] [blame] | 189 | self.retrace_function_body(function) |
| 190 | print '}' |
| 191 | print |
| 192 | |
| 193 | def retrace_function_body(self, function): |
José Fonseca | 4d7f1fe | 2011-05-09 20:54:31 +0100 | [diff] [blame] | 194 | if not function.sideeffects: |
José Fonseca | 9109c3a | 2011-05-24 19:31:26 +0100 | [diff] [blame] | 195 | print ' (void)call;' |
José Fonseca | 4d7f1fe | 2011-05-09 20:54:31 +0100 | [diff] [blame] | 196 | return |
| 197 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 198 | success = True |
| 199 | for arg in function.args: |
| 200 | arg_type = ConstRemover().visit(arg.type) |
| 201 | #print ' // %s -> %s' % (arg.type, arg_type) |
| 202 | print ' %s %s;' % (arg_type, arg.name) |
| 203 | rvalue = 'call.arg(%u)' % (arg.index,) |
| 204 | lvalue = arg.name |
| 205 | try: |
José Fonseca | dacd8dd | 2010-11-25 17:50:26 +0000 | [diff] [blame] | 206 | self.extract_arg(function, arg, arg_type, lvalue, rvalue) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 207 | except NotImplementedError: |
| 208 | success = False |
| 209 | print ' %s = 0; // FIXME' % arg.name |
| 210 | if not success: |
José Fonseca | 9109c3a | 2011-05-24 19:31:26 +0100 | [diff] [blame] | 211 | print ' if (1) {' |
José Fonseca | fa15d33 | 2010-11-25 20:22:39 +0000 | [diff] [blame] | 212 | self.fail_function(function) |
José Fonseca | 9109c3a | 2011-05-24 19:31:26 +0100 | [diff] [blame] | 213 | print ' }' |
José Fonseca | fa15d33 | 2010-11-25 20:22:39 +0000 | [diff] [blame] | 214 | self.call_function(function) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 215 | for arg in function.args: |
| 216 | if arg.output: |
| 217 | arg_type = ConstRemover().visit(arg.type) |
| 218 | rvalue = 'call.arg(%u)' % (arg.index,) |
| 219 | lvalue = arg.name |
| 220 | try: |
| 221 | ValueWrapper().visit(arg_type, lvalue, rvalue) |
| 222 | except NotImplementedError: |
José Fonseca | 0a37edf | 2011-10-09 09:45:22 +0100 | [diff] [blame^] | 223 | print ' // XXX: %s' % arg.name |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 224 | if function.type is not stdapi.Void: |
| 225 | rvalue = '*call.ret' |
| 226 | lvalue = '__result' |
| 227 | try: |
| 228 | ValueWrapper().visit(function.type, lvalue, rvalue) |
| 229 | except NotImplementedError: |
José Fonseca | 0a37edf | 2011-10-09 09:45:22 +0100 | [diff] [blame^] | 230 | success = False |
| 231 | print ' // FIXME: result' |
| 232 | if not success: |
| 233 | if function.name[-1].islower(): |
| 234 | sys.stderr.write('warning: %s unsupported\n' % function.name) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 235 | |
José Fonseca | fa15d33 | 2010-11-25 20:22:39 +0000 | [diff] [blame] | 236 | def fail_function(self, function): |
José Fonseca | b1bb3c2 | 2011-10-08 20:23:18 +0100 | [diff] [blame] | 237 | print ' if (retrace::verbosity >= 0) {' |
| 238 | print ' retrace::unknown(call);' |
| 239 | print ' }' |
José Fonseca | fa15d33 | 2010-11-25 20:22:39 +0000 | [diff] [blame] | 240 | print ' return;' |
| 241 | |
José Fonseca | dacd8dd | 2010-11-25 17:50:26 +0000 | [diff] [blame] | 242 | def extract_arg(self, function, arg, arg_type, lvalue, rvalue): |
| 243 | ValueExtractor().visit(arg_type, lvalue, rvalue) |
José Fonseca | fd34e4e | 2011-06-03 19:34:29 +0100 | [diff] [blame] | 244 | |
| 245 | def extract_opaque_arg(self, function, arg, arg_type, lvalue, rvalue): |
| 246 | OpaqueValueExtractor().visit(arg_type, lvalue, rvalue) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 247 | |
José Fonseca | fa15d33 | 2010-11-25 20:22:39 +0000 | [diff] [blame] | 248 | def call_function(self, function): |
| 249 | arg_names = ", ".join([arg.name for arg in function.args]) |
| 250 | if function.type is not stdapi.Void: |
| 251 | print ' %s __result;' % (function.type) |
| 252 | print ' __result = %s(%s);' % (function.name, arg_names) |
José Fonseca | 974a3fb | 2011-05-23 21:15:12 +0100 | [diff] [blame] | 253 | print ' (void)__result;' |
José Fonseca | fa15d33 | 2010-11-25 20:22:39 +0000 | [diff] [blame] | 254 | else: |
| 255 | print ' %s(%s);' % (function.name, arg_names) |
| 256 | |
José Fonseca | 4441baf | 2010-11-25 19:55:27 +0000 | [diff] [blame] | 257 | def filter_function(self, function): |
| 258 | return True |
| 259 | |
José Fonseca | 2741ed8 | 2011-10-07 23:36:39 +0100 | [diff] [blame] | 260 | table_name = 'retrace::callbacks' |
| 261 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 262 | def retrace_functions(self, functions): |
José Fonseca | 4441baf | 2010-11-25 19:55:27 +0000 | [diff] [blame] | 263 | functions = filter(self.filter_function, functions) |
| 264 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 265 | for function in functions: |
José Fonseca | 4d7f1fe | 2011-05-09 20:54:31 +0100 | [diff] [blame] | 266 | self.retrace_function(function) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 267 | |
José Fonseca | 2741ed8 | 2011-10-07 23:36:39 +0100 | [diff] [blame] | 268 | print 'const retrace::Entry %s[] = {' % self.table_name |
| 269 | for function in functions: |
| 270 | print ' {"%s", &retrace_%s},' % (function.name, function.name) |
| 271 | print ' {NULL, NULL}' |
| 272 | print '};' |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 273 | print |
| 274 | |
| 275 | |
| 276 | def retrace_api(self, api): |
| 277 | |
| 278 | print '#include "trace_parser.hpp"' |
José Fonseca | 91343f5 | 2011-04-01 08:37:06 +0100 | [diff] [blame] | 279 | print '#include "retrace.hpp"' |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 280 | print |
| 281 | |
| 282 | types = api.all_types() |
| 283 | handles = [type for type in types if isinstance(type, stdapi.Handle)] |
José Fonseca | d922e1d | 2010-11-25 17:14:02 +0000 | [diff] [blame] | 284 | handle_names = set() |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 285 | for handle in handles: |
José Fonseca | d922e1d | 2010-11-25 17:14:02 +0000 | [diff] [blame] | 286 | if handle.name not in handle_names: |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 287 | if handle.key is None: |
José Fonseca | 91343f5 | 2011-04-01 08:37:06 +0100 | [diff] [blame] | 288 | print 'static retrace::map<%s> __%s_map;' % (handle.type, handle.name) |
José Fonseca | 8a844ae | 2010-12-06 18:50:52 +0000 | [diff] [blame] | 289 | else: |
| 290 | key_name, key_type = handle.key |
José Fonseca | 91343f5 | 2011-04-01 08:37:06 +0100 | [diff] [blame] | 291 | print 'static std::map<%s, retrace::map<%s> > __%s_map;' % (key_type, handle.type, handle.name) |
José Fonseca | d922e1d | 2010-11-25 17:14:02 +0000 | [diff] [blame] | 292 | handle_names.add(handle.name) |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 293 | print |
| 294 | |
José Fonseca | e0e6140 | 2010-11-25 15:03:23 +0000 | [diff] [blame] | 295 | self.retrace_functions(api.functions) |
| 296 | |