Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(373)

Delta Between Two Patch Sets: cgen/templates/default/load_deref

Issue 14757: INCA: Inline Caching meets Quickening in Python 3.3
Left Patch Set: Created 1 year ago
Right Patch Set: Created 1 year ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « cgen/templates/default/load_const ('k') | cgen/templates/default/load_fast » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 1
2 TARGET(LOAD_DEREF) 2 TARGET(LOAD_DEREF)
3 x = freevars[oparg]; 3 x = freevars[oparg];
4 w = PyCell_Get(x); 4 w = PyCell_Get(x);
5 if (w != NULL) { 5 if (w != NULL) {
6 PUSH(w); 6 PUSH(w);
7 DISPATCH(); 7 DISPATCH();
8 } 8 }
9 load_deref_error: 9 load_deref_error:
10 err = -1; 10 err = -1;
11 /* Don't stomp existing exception */ 11 /* Don't stomp existing exception */
12 if (PyErr_Occurred()) 12 if (PyErr_Occurred())
13 goto on_error;; 13 goto on_error;;
14 if (oparg < PyTuple_GET_SIZE(co->co_cellvars)) { 14 if (oparg < PyTuple_GET_SIZE(co->co_cellvars)) {
15 v = PyTuple_GET_ITEM(co->co_cellvars, 15 v = PyTuple_GET_ITEM(co->co_cellvars,
16 oparg); 16 oparg);
17 format_exc_check_arg( 17 format_exc_check_arg(
18 PyExc_UnboundLocalError, 18 PyExc_UnboundLocalError,
19 UNBOUNDLOCAL_ERROR_MSG, 19 UNBOUNDLOCAL_ERROR_MSG,
20 v); 20 v);
21 } else { 21 } else {
22 v = PyTuple_GET_ITEM(co->co_freevars, oparg - 22 v = PyTuple_GET_ITEM(co->co_freevars, oparg -
23 PyTuple_GET_SIZE(co->co_cellvars)); 23 PyTuple_GET_SIZE(co->co_cellvars));
24 format_exc_check_arg(PyExc_NameError, 24 format_exc_check_arg(PyExc_NameError,
25 UNBOUNDFREE_ERROR_MSG, v); 25 UNBOUNDFREE_ERROR_MSG, v);
26 } 26 }
27 goto on_error;; 27 goto on_error;;
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7