Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-105481: generate _specializations and _specialized_instructions from bytecodes.c#105913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
iritkatriel merged 9 commits intopython:mainfromiritkatriel:specialziation-data
Jun 19, 2023
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
update import
  • Loading branch information
@iritkatriel
iritkatriel committedJun 19, 2023
commitd8fac92536a09b43fc08f241de355e44be38f4d5
5 changes: 2 additions & 3 deletionsLib/test/test_dis.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,6 @@
from test.support.bytecode_helper import BytecodeTestCase

import opcode
import _opcode_metadata


def get_tb():
Expand DownExpand Up@@ -1917,12 +1916,12 @@ def test_baseopname_and_baseopcode(self):
self.assertEqual(code, baseopcode)

# Specialized instructions
for name in_opcode_metadata._specialized_instructions:
for name inopcode._specialized_instructions:
instruction = Instruction(opname=name, opcode=dis._all_opmap[name], arg=None, argval=None, argrepr='',
offset=0, start_offset=0, starts_line=1, is_jump_target=False, positions=None)
baseopname = instruction.baseopname
baseopcode = instruction.baseopcode
self.assertIn(name,_opcode_metadata._specializations[baseopname])
self.assertIn(name,opcode._specializations[baseopname])
self.assertEqual(opcode.opmap[baseopname], baseopcode)

def test_jump_target(self):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp