|
@@ -224,7 +224,6 @@ class ModelverseKernel(object):
|
|
|
prev = \
|
|
|
" " * nested_indent + "%s = _mvk.jit.cache[_taskname].get('%s', None)\n" % (str_value, str_value) + \
|
|
|
" " * nested_indent + "if %s is None:\n" % str_value + \
|
|
|
- " " * (nested_indent + 1) + "print('cache miss for %s')\n" % str_value + \
|
|
|
" " * (nested_indent + 1) + "%s, = yield [('RD', [_globs, '%s'])]\n" % (str_value, str_value) + \
|
|
|
" " * (nested_indent + 1) + "%s, = yield [('RD', [%s, 'value'])]\n" % (str_value, str_value) + \
|
|
|
" " * (nested_indent + 1) + "%s = {'id': %s}\n" % (str_value, str_value) + \
|
|
@@ -431,10 +430,6 @@ class ModelverseKernel(object):
|
|
|
if result is None:
|
|
|
result = {'id': None, 'value': None}
|
|
|
|
|
|
- # TODO this can move inside "store" branch?
|
|
|
- if "id" not in result:
|
|
|
- result['id'], = yield [("CNV", [result['value']])]
|
|
|
-
|
|
|
if store:
|
|
|
# Clean up the current stack, as if a return happened
|
|
|
old_frame, exception_return = yield [
|
|
@@ -444,6 +439,9 @@ class ModelverseKernel(object):
|
|
|
#if self.debug_info[self.taskname]:
|
|
|
# self.debug_info[self.taskname].pop()
|
|
|
|
|
|
+ if "id" not in result:
|
|
|
+ result['id'], = yield [("CNV", [result['value']])]
|
|
|
+
|
|
|
if exception_return is not None:
|
|
|
# The caller has requested that we throw an exception instead of injecting
|
|
|
# the return value into the caller's frame. Read the comment at
|