Commit f975d627 authored by Neal Norwitz's avatar Neal Norwitz

INPLACE_DIVIDE is no longer necessary (INPLACE_TRUE_DIVIDE is used).

parent c83315d2
...@@ -247,11 +247,6 @@ Implements in-place \code{TOS = TOS1 ** TOS}. ...@@ -247,11 +247,6 @@ Implements in-place \code{TOS = TOS1 ** TOS}.
Implements in-place \code{TOS = TOS1 * TOS}. Implements in-place \code{TOS = TOS1 * TOS}.
\end{opcodedesc} \end{opcodedesc}
\begin{opcodedesc}{INPLACE_DIVIDE}{}
Implements in-place \code{TOS = TOS1 / TOS} when
\code{from __future__ import division} is not in effect.
\end{opcodedesc}
\begin{opcodedesc}{INPLACE_FLOOR_DIVIDE}{} \begin{opcodedesc}{INPLACE_FLOOR_DIVIDE}{}
Implements in-place \code{TOS = TOS1 // TOS}. Implements in-place \code{TOS = TOS1 // TOS}.
\end{opcodedesc} \end{opcodedesc}
......
...@@ -48,7 +48,7 @@ extern "C" { ...@@ -48,7 +48,7 @@ extern "C" {
#define INPLACE_ADD 55 #define INPLACE_ADD 55
#define INPLACE_SUBTRACT 56 #define INPLACE_SUBTRACT 56
#define INPLACE_MULTIPLY 57 #define INPLACE_MULTIPLY 57
#define INPLACE_DIVIDE 58
#define INPLACE_MODULO 59 #define INPLACE_MODULO 59
#define STORE_SUBSCR 60 #define STORE_SUBSCR 60
#define DELETE_SUBSCR 61 #define DELETE_SUBSCR 61
......
...@@ -999,7 +999,7 @@ class CodeGenerator: ...@@ -999,7 +999,7 @@ class CodeGenerator:
'+=' : 'INPLACE_ADD', '+=' : 'INPLACE_ADD',
'-=' : 'INPLACE_SUBTRACT', '-=' : 'INPLACE_SUBTRACT',
'*=' : 'INPLACE_MULTIPLY', '*=' : 'INPLACE_MULTIPLY',
'/=' : 'INPLACE_DIVIDE', '/=' : 'INPLACE_TRUE_DIVIDE',
'//=': 'INPLACE_FLOOR_DIVIDE', '//=': 'INPLACE_FLOOR_DIVIDE',
'%=' : 'INPLACE_MODULO', '%=' : 'INPLACE_MODULO',
'**=': 'INPLACE_POWER', '**=': 'INPLACE_POWER',
......
...@@ -88,7 +88,7 @@ def_op('DELETE_SLICE+3', 53) ...@@ -88,7 +88,7 @@ def_op('DELETE_SLICE+3', 53)
def_op('INPLACE_ADD', 55) def_op('INPLACE_ADD', 55)
def_op('INPLACE_SUBTRACT', 56) def_op('INPLACE_SUBTRACT', 56)
def_op('INPLACE_MULTIPLY', 57) def_op('INPLACE_MULTIPLY', 57)
def_op('INPLACE_DIVIDE', 58)
def_op('INPLACE_MODULO', 59) def_op('INPLACE_MODULO', 59)
def_op('STORE_SUBSCR', 60) def_op('STORE_SUBSCR', 60)
def_op('DELETE_SUBSCR', 61) def_op('DELETE_SUBSCR', 61)
......
...@@ -1338,7 +1338,6 @@ opcode_stack_effect(int opcode, int oparg) ...@@ -1338,7 +1338,6 @@ opcode_stack_effect(int opcode, int oparg)
case INPLACE_ADD: case INPLACE_ADD:
case INPLACE_SUBTRACT: case INPLACE_SUBTRACT:
case INPLACE_MULTIPLY: case INPLACE_MULTIPLY:
case INPLACE_DIVIDE:
case INPLACE_MODULO: case INPLACE_MODULO:
return -1; return -1;
case STORE_SUBSCR: case STORE_SUBSCR:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment