[parrot/parrot] 597ed9: imcc: never store STRINGNULL in registers

GitHub noreply at github.com
Fri Oct 24 21:48:27 UTC 2014


  Branch: refs/heads/rurban/lexqnames-gh1095-dev
  Home:   https://github.com/parrot/parrot
  Commit: 597ed964557a955ea85c67a0ad3b6f114b450330
      https://github.com/parrot/parrot/commit/597ed964557a955ea85c67a0ad3b6f114b450330
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-24 (Fri, 24 Oct 2014)

  Changed paths:
    M compilers/imcc/pbc.c

  Log Message:
  -----------
  imcc: never store STRINGNULL in registers

performance-wise it would be a good idea, but the vm is not prepared
to deal with it. e.g. index fails, lots of invalid encoding errors.
maybe we should set the empty string to ascii.


  Commit: 657f11ff3e8bbe31d4ebde3dcff226386aa1d894
      https://github.com/parrot/parrot/commit/657f11ff3e8bbe31d4ebde3dcff226386aa1d894
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-24 (Fri, 24 Oct 2014)

  Changed paths:
    M compilers/imcc/imcc.y
    M compilers/imcc/imcparser.c
    M compilers/imcc/imcparser.h

  Log Message:
  -----------
  [imcc] empty named constants can only be subs

on the original code this looked like
(strncmp(unquoted_name, "Sub",       name_length) with
name_length = 0, for .const  $Pxx = "constant"


Compare: https://github.com/parrot/parrot/compare/68c3d2c371be...657f11ff3e8b


More information about the parrot-commits mailing list