Skip to content

Commit

Permalink
Replace ENTER_EXECUTOR with the original in trace projection
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 7, 2023
1 parent 363f4f9 commit 613cdca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,12 @@ translate_bytecode_to_trace(
opcode = instr->op.code;
operand = (operand << 8) | instr->op.arg;
}
if (opcode == ENTER_EXECUTOR) {
_PyExecutorObject *executor = (_PyExecutorObject *)code->co_executors->executors[operand&255];

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Windows (x64)

'operand': undeclared identifier [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Windows (x64)

'operand': undeclared identifier [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Ubuntu

‘operand’ undeclared (first use in this function)

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

‘operand’ undeclared (first use in this function)

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

‘operand’ undeclared (first use in this function)

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

‘operand’ undeclared (first use in this function)

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Address sanitizer

‘operand’ undeclared (first use in this function)

Check failure on line 423 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

‘operand’ undeclared (first use in this function)
opcode = executor->vm_data.opcode;
DPRINTF(2, " * ENTER_EXECUTOR -> %s\n", _PyOpcode_OpName[opcode]);
operand = (operand & 0xffffff00) | executor->vm_data.oparg;

Check failure on line 426 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Windows (x64)

'operand': undeclared identifier [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 426 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Windows (x64)

'operand': undeclared identifier [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 426 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Windows (x64)

'operand': undeclared identifier [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Check failure on line 426 in Python/optimizer.c

View workflow job for this annotation

GitHub Actions / Windows (x64)

'operand': undeclared identifier [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
}
switch (opcode) {
case LOAD_FAST_LOAD_FAST:
case STORE_FAST_LOAD_FAST:
Expand Down

0 comments on commit 613cdca

Please sign in to comment.