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

Unified Diff: Python/opt/interpreter-macro-defs.h

Issue 14757: INCA: Inline Caching meets Quickening in Python 3.3
Patch Set: Created 1 year ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Python/opt/gen/threaded-code.h.gen ('k') | Python/opt/interpreter-macro-redefinitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Python/opt/interpreter-macro-defs.h Fri May 11 16:21:51 2012 -0700
@@ -0,0 +1,13 @@
+/* 20111209/1611/sbr: definitions of necessary macros... */
+
+#define Py_CUSTOM_DECREF(op,TYPE,FUNC) \
+ do { \
+ if ((op) != NULL && --((PyObject*)(op))->ob_refcnt == 0) \
+ FUNC((TYPE*)(op)); \
+ } while (0)
+
+#define PyFrame_GetCode(OP) (OP->f_code)
+
+#define GET_OBJARR_ELEM(ident,index) (((PyObject**)ident)[index])
+
+
« no previous file with comments | « Python/opt/gen/threaded-code.h.gen ('k') | Python/opt/interpreter-macro-redefinitions.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7