Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 452a459

Browse files
author
Anselm Kruis
committed
Stackless issue #133: reduce differences to C-Python
- Remove a byte-code specific optimization. The next merge from master will switch to word-code. - #define PY_LOCAL_AGGRESSIVE, it was undefined by accident in commit 1c7ff3e.
1 parent b703448 commit 452a459

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

Python/ceval.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
/* enable more aggressive intra-module optimizations, where available */
10-
#undef PY_LOCAL_AGGRESSIVE
10+
#define PY_LOCAL_AGGRESSIVE
1111

1212
#include "Python.h"
1313

@@ -1048,18 +1048,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
10481048
#endif
10491049

10501050

1051-
#ifdef STACKLESS
1052-
#ifdef STACKLESS_USE_ENDIAN
1053-
1054-
#undef NEXTARG
1055-
#define NEXTARG() (next_instr += 2, ((unsigned short *)next_instr)[-1])
1056-
#undef PREDICTED_WITH_ARG
1057-
#define PREDICTED_WITH_ARG(op) PRED_##op: next_instr += 3; \
1058-
oparg = ((unsigned short *)next_instr)[-1]
1059-
1060-
#endif
1061-
#endif
1062-
10631051
/* Stack manipulation macros */
10641052

10651053
/* The stack can grow at most MAXINT deep, as co_nlocals and

Stackless/platf/switch_x86_msvc.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939

4040
#define STACK_REFPLUS 1
4141

42-
/* use faster oparg fetch */
43-
#define STACKLESS_USE_ENDIAN
44-
4542
/* switching related stuff */
4643
#ifdef SLP_EVAL
4744

0 commit comments

Comments
 (0)