403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/profiling/sampling/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/profiling/sampling/__pycache__/opcode_utils.cpython-315.opt-1.pyc
R
>lqjW
c���Qs]PHs\\\O22s\\Q2%c+\OO2FDvs	s
\	\\
$J
	-s\\Q2%c�\\Q2%cw\OO2FDWvs
s\OO!\
2s\eJ'\FD)s\OO!\2s\eJ$\\\$J+	JY	QsQsQsP!)acOpcode utilities for bytecode-level profiler visualization.

This module provides utilities to get opcode names and detect specialization
status using the opcode module's metadata. Used by heatmap and flamegraph
collectors to display which bytecode instructions are executing at each
source line, including Python's adaptive specialization optimizations.
�_specialized_opmap�_specializationsc���[OU2oUeQQUQ0QQUQ0QP
-![OU2oUd#[OUQUQ02oQUQUQP	-!QUQUQP
-!)amGet opcode name and specialization info from an opcode number.

Args:
    opcode_num: The opcode number (0-255 or higher for specialized)

Returns:
    A dict with keys:
    - 'opname': The opcode name (e.g., 'LOAD_ATTR_INSTANCE_VALUE')
    - 'base_opname': The base opcode name (e.g., 'LOAD_ATTR')
    - 'is_specialized': True if this is a specialized instruction
�opname�<�>�base_opname�is_specialized)�
_OPCODE_NAMES�get�
_DEOPT_MAP)�
opcode_numr�base_opcoders&   �4C:\Python315\\Lib\profiling\sampling\opcode_utils.py�get_opcode_infor#s����
�
�z�
*�F�
�~���*��Q�'��Q�z�l�!�,��e�
�	
��.�.��,�K���#�'�'��q��
�Q�5G�H���f��;��d�
�	
�	�&��v��%���c�v�[U2oUQ*%cUQ*QUQ*Q0!UQ*!)z�Format an opcode for display, showing base opcode for specialized ones.

Args:
    opcode_num: The opcode number (0-255 or higher for specialized)

Returns:
    A formatted string like 'LOAD_ATTR' or 'LOAD_ATTR_INSTANCE_VALUE (LOAD_ATTR)'
rrz (r�))r)r�infos& r�
format_opcoderGsB���:�&�D������x�.�!��D��$7�#8��:�:���>�rc� �Q[Q[-!)z�Get opcode name and deopt mappings for JavaScript consumption.

Returns:
    A dict with keys:
    - 'names': Dict mapping opcode numbers to opcode names
    - 'deopt': Dict mapping specialized opcode numbers to base opcode numbers
�names�deopt)r	r�rr�get_opcode_mappingrVs��
�]�G�Z�8�8r)�__doc__�opcode�dict�	enumeraterr	�hasattrr�items�name�oprr�	base_name�
variant_names�opmapr
r
�variant_name�variant_opcoderrrrrr�<module>r's������Y�v�}�}�-�.�
�
�6�'�(�(��-�-�3�3�5���b� �
�b��6��
�
�6�%�&�&�7�
� �,�,�%+�$;�$;�$A�$A�$C� �	�=��l�l�&�&�y�1���"� -��!'�!:�!:�!>�!>�|�!L��!�-�1<�J�~�.�!.�%D�!�H�9r

Youez - 2016 - github.com/yon3zu
LinuXploit