summaryrefslogtreecommitdiffstatshomepage
path: root/py/repl.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-04-18 22:52:18 +1000
committerDamien George <damien.p.george@gmail.com>2017-04-22 21:46:32 +1000
commit5335942b599d85263d3c18eb99ff5ebd04a8bc98 (patch)
treee01e62224ae9d1b70cb5a57fa8c33630badea559 /py/repl.h
parent0dd6a59c895b6de4841b4e372069aa9392c24d5f (diff)
downloadmicropython-5335942b599d85263d3c18eb99ff5ebd04a8bc98.tar.gz
micropython-5335942b599d85263d3c18eb99ff5ebd04a8bc98.zip
py/compile: Refactor handling of special super() call.
This patch refactors the handling of the special super() call within the compiler. It removes the need for a global (to the compiler) state variable which keeps track of whether the subject of an expression is super. The handling of super() is now done entirely within one function, which makes the compiler a bit cleaner and allows to easily add more optimisations to super calls. Changes to the code size are: bare-arm: +12 minimal: +0 unix x64: +48 unix nanbox: -16 stmhal: +4 cc3200: +0 esp8266: -56
Diffstat (limited to 'py/repl.h')
0 files changed, 0 insertions, 0 deletions