Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c1a95fc0046561b13ba5e8df6d6fd040a722443a
Ticket: 1323154fffffffffffffffffffffffffffffffff
improve literal handling
User & Date: msofer on 2005-10-10 17:53:43
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    While investigating something else, I came to notice
    that the compiler is doing a bad job at literal
    sharing. Note in this bytecode that the three "" appear
    as three different literals:
    
    ByteCode 0x816c458, refCt 1, epoch 0, interp 0x814cb28
    (epoch 0)
      Source "for break 1 {} {}"
      Cmds 2, src 17, inst 18, litObjs 4, aux 0, stkDepth
    1, code/src 12.00
      Code 204 = header 100+inst 18+litObj 16+exc 56+aux
    0+cmdMap 8
      Exception ranges 2, depth 1:
          0: level 1, loop, pc 4-5, continue 7, break 15
          1: level 1, loop, pc 7-8, continue -1, break 15
      Commands 2:
          1: pc 0-16, src 0-16         2: pc 0-0, src 4-8
      Command 1: "for break 1 {} {}"
      Command 2: "break"
        (0) break
        (1) pop
        (2) jump1 +8        # pc 10
        (4) push1 0         # ""
        (6) pop
        (7) push1 1         # ""
        (9) pop
        (10) push1 2        # "1"
        (12) tryCvtToNumeric
        (13) jumpTrue1 -9   # pc 4
        (15) push1 3        # ""
        (17) done
    i
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "improve literal handling"
  11. type changed to: "Bug"