[dmd-internals] [D-Programming-Language/dmd] 52c61f: Replace abused WANTinterpret with NEEDinterpret

GitHub noreply at github.com
Wed Jun 13 07:19:47 PDT 2012


  Branch: refs/heads/dmd-1.x
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 52c61f1f98a626cdea830e09905137a5b1c9832a
      https://github.com/D-Programming-Language/dmd/commit/52c61f1f98a626cdea830e09905137a5b1c9832a
  Author: Don Clugston <don.clugston at sociomantic.com>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M src/declaration.c
    M src/expression.c
    M src/init.c
    M src/init.h

  Log Message:
  -----------
  Replace abused WANTinterpret with NEEDinterpret

WANTinterpret was used for two independent purposes, this removes one of them.


  Commit: 51d2d9da6207bcc214669e55f14621a71e771d47
      https://github.com/D-Programming-Language/dmd/commit/51d2d9da6207bcc214669e55f14621a71e771d47
  Author: Don Clugston <don.clugston at sociomantic.com>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M src/interpret.c

  Log Message:
  -----------
  CTFE: Fix segfault with x ~ error


  Commit: eb3de9f87f15f4568afe6c55f7e8e8161fdfb829
      https://github.com/D-Programming-Language/dmd/commit/eb3de9f87f15f4568afe6c55f7e8e8161fdfb829
  Author: Don Clugston <don.clugston at sociomantic.com>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M src/attrib.c
    M src/cond.c
    M src/declaration.c
    M src/expression.c
    M src/expression.h
    M src/iasm.c
    M src/init.c
    M src/init.h
    M src/interpret.c
    M src/mtype.c
    M src/statement.c
    M src/staticassert.c
    M src/template.c
    M src/traits.c

  Log Message:
  -----------
  Refactor optimize(WANTinterpret) -> ctfeInterpret()

This creates a single entry point to CTFE. Separating "const-folding that may
result in CTFE" from a "call to CTFE" causes a lot of unnecessary complexity
and code duplication, and causes bugs like 7640.


  Commit: aa1401d3a0cb38d4e7ff4724f88ed16afdd53b27
      https://github.com/D-Programming-Language/dmd/commit/aa1401d3a0cb38d4e7ff4724f88ed16afdd53b27
  Author: Walter Bright <walter at walterbright.com>
  Date:   2012-06-13 (Wed, 13 Jun 2012)

  Changed paths:
    M src/attrib.c
    M src/cond.c
    M src/declaration.c
    M src/expression.c
    M src/expression.h
    M src/iasm.c
    M src/init.c
    M src/init.h
    M src/interpret.c
    M src/mtype.c
    M src/statement.c
    M src/staticassert.c
    M src/template.c
    M src/traits.c

  Log Message:
  -----------
  Merge pull request #1002 from donc/D1_WANTinterpret

D1 Refactor: create a single entry point for CTFE interpreting


Compare: https://github.com/D-Programming-Language/dmd/compare/bfdf3890c474...aa1401d3a0cb


More information about the dmd-internals mailing list