GRAYBYTE WORDPRESS FILE MANAGER9845

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby34/share/ruby/ruby_vm/rjit/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby34/share/ruby/ruby_vm/rjit//code_block.rb
module RubyVM::RJIT
  class CodeBlock
    # @param mem_block [Integer] JIT buffer address
    # @param mem_size  [Integer] JIT buffer size
    # @param outliend  [TrueClass,FalseClass] true for outlined CodeBlock
    def initialize(mem_block:, mem_size:, outlined: false)
      @comments  = Hash.new { |h, k| h[k] = [] } if dump_disasm?
      @mem_block = mem_block
      @mem_size  = mem_size
      @write_pos = 0
      @outlined  = outlined
    end

    # @param asm [RubyVM::RJIT::Assembler]
    def write(asm)
      return 0 if @write_pos + asm.size >= @mem_size

      start_addr = write_addr

      # Write machine code
      C.mprotect_write(@mem_block, @mem_size)
      @write_pos += asm.assemble(start_addr)
      C.mprotect_exec(@mem_block, @mem_size)

      end_addr = write_addr

      # Convert comment indexes to addresses
      asm.comments.each do |index, comments|
        @comments[start_addr + index] += comments if dump_disasm?
      end
      asm.comments.clear

      # Dump disasm if --rjit-dump-disasm
      if C.rjit_opts.dump_disasm && start_addr < end_addr
        dump_disasm(start_addr, end_addr)
      end
      start_addr
    end

    def set_write_addr(addr)
      @write_pos = addr - @mem_block
      @comments.delete(addr) if dump_disasm?
    end

    def with_write_addr(addr)
      old_write_pos = @write_pos
      set_write_addr(addr)
      yield
    ensure
      @write_pos = old_write_pos
    end

    def write_addr
      @mem_block + @write_pos
    end

    def include?(addr)
      (@mem_block...(@mem_block + @mem_size)).include?(addr)
    end

    def dump_disasm(from, to, io: STDOUT, color: true, test: false)
      C.dump_disasm(from, to, test:).each do |address, mnemonic, op_str|
        @comments.fetch(address, []).each do |comment|
          io.puts colorize("  # #{comment}", bold: true, color:)
        end
        io.puts colorize("  0x#{format("%x", address)}: #{mnemonic} #{op_str}", color:)
      end
      io.puts
    end

    private

    def colorize(text, bold: false, color:)
      return text unless color
      buf = +''
      buf << "\e[1m" if bold
      buf << "\e[34m" if @outlined
      buf << text
      buf << "\e[0m"
      buf
    end

    def bold(text)
      "\e[1m#{text}\e[0m"
    end

    def dump_disasm?
      C.rjit_opts.dump_disasm
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 29 2025 08:40:00
root / root
0755
assembler.rb
32.813 KB
May 29 2025 13:39:39
root / linksafe
0644
block.rb
0.555 KB
May 29 2025 13:39:39
root / linksafe
0644
branch_stub.rb
0.858 KB
May 29 2025 13:39:39
root / linksafe
0644
c_pointer.rb
10.678 KB
May 29 2025 13:39:39
root / linksafe
0644
c_type.rb
2.659 KB
May 29 2025 13:39:39
root / linksafe
0644
code_block.rb
2.276 KB
May 29 2025 13:39:39
root / linksafe
0644
compiler.rb
16.716 KB
May 29 2025 13:39:39
root / linksafe
0644
context.rb
11.144 KB
May 29 2025 13:39:39
root / linksafe
0644
entry_stub.rb
0.221 KB
May 29 2025 13:39:39
root / linksafe
0644
exit_compiler.rb
4.826 KB
May 29 2025 13:39:39
root / linksafe
0644
hooks.rb
0.927 KB
May 29 2025 13:39:39
root / linksafe
0644
insn_compiler.rb
204.807 KB
May 29 2025 13:39:39
root / linksafe
0644
instruction.rb
38.663 KB
May 29 2025 13:39:39
root / linksafe
0644
invariants.rb
4.725 KB
May 29 2025 13:39:39
root / linksafe
0644
jit_state.rb
1.96 KB
May 29 2025 13:39:39
root / linksafe
0644
stats.rb
7.4 KB
May 29 2025 13:39:39
root / linksafe
0644
type.rb
5.908 KB
May 29 2025 13:39:39
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF