Permalink
Switch branches/tags
Commits on Nov 16, 2011
  1. PackfileAnnotation: Add PMC and type methods

    Benabik committed Nov 16, 2011
    Previously there was no way to determine the type of the annotation
    (except trial and error), nor a way to get a PMC annotation.
Commits on Oct 20, 2011
  1. codingstd fixes

    Benabik committed Oct 20, 2011
  2. Kill Parrot-Embed

    Benabik committed Oct 20, 2011
    Even the most basic tests result in segfaults, so I can't imagine this
    is used.  Development will continue in the parrot-embed project on
    github and, if desired, we can put it back once it works again.
    
    Closes #181
  3. PDD10: Fix function name

    Benabik committed Oct 20, 2011
    It's Parrot_api_load_bytecode_file, not just load_bytecode.
  4. Parrot::Embed - parrot_config is up two levels

    Benabik committed Oct 20, 2011
    ./parrot_config won't work unless run from the repository root and
    Build.PL won't work from there.  So fix the path.  This gets me far
    enough to see failing tests.
  5. distutils: clean_exe_pbc used the wrong filename

    Benabik committed Oct 20, 2011
    The clean_exe_pbc target used _mk_path_exe(pbc) to generate the file
    names to clean.  However, the exe_pbc used the bin name to generate
    the files via --output.  So instead of _mk_path_exe, the clean target
    should use the bin name directly with concat.
    
    Fixes #180
  6. abc: Load trans_ops in compiled program

    Benabik committed Oct 20, 2011
    Attempting to .loadlib in the compiler doesn't work because if you
    don't use any ops from the library, it doesn't end up in the final PBC
    file.  So instead use the loadlibs option on PAST::Block to have the
    compiled program do it.
    
    Fixes #178
  7. examples/languages/abc: Add test from TT 161

    Benabik committed Oct 20, 2011
    Variable abc seems to be aliased to "last" somehow.  It's very
    strange, and somebody may want to look into it.
Commits on Oct 19, 2011
  1. HLLCompiler: Allow -e to play well with --target

    Benabik committed Oct 19, 2011
    chrisdolan++ for giving us this patch in TT 366.  However, it appears
    NQP rewrites enough of PCT::HLLCompiler that this fix doesn't affect
    NQP or Rakudo nom.
Commits on Oct 18, 2011
  1. postgres: Pass interp to Parrot_str_new

    Benabik committed Oct 18, 2011
    This was segfaulting because Parrot_str_new expects an interp, a
    buffer, and a length but we were only passing a buffer and length.
    The result was... not good.  See gh-168 for gory details.
  2. PackfileAnnotations: Fix decl-after-statement

    Benabik committed Oct 18, 2011
    Apparently benabik-- somehow forgot to test the code he pushed.  My
    guess is that it late and this one slipped through some cleanups.
    gerd++ for noticing.
  3. Update Packfile* PMC documentation

    Benabik authored and petdance committed Oct 16, 2011
    Packfile:
     - Does not have a uuid_length key
     - unpack takes a string, does not return one
    
    PackfileDebug:
     - Doesn't have two get_string_keyed_int methods
    
    PackfileOpMap
     - Isn't a debug segment
     - Has opcode mappings, not filename mappings
  4. PackfileOpMap: Add a way to get loaded oplibs

    Benabik committed Oct 18, 2011
    Since OpLibs don't know their own name, use a hash.
  5. PackfileDebug: Lookup filenames in the const table

    Benabik committed Oct 18, 2011
    The method of doing so is modeled after the code in PackfileAnnotations.
  6. PackfileDebug: Bring more sanity to VTABLEs

    Benabik committed Oct 18, 2011
    - We have a custom mark VTABLE, so mention that in init.
    - Shorten mark a little by getting all the attributes at once.
    - The get_integer VTABLE is actually returning the number of
      elements in the PMC, so use the elements VTABLE.
    - The line number is an integer so use get_integer_keyed_int
      This keeps around get_pmc_keyed_int as a wrapper.
    - Refactor get_string_keyed_int in preparation for further
      changes.
  7. PackfileAnnotations: Ignore SUPER a little less

    Benabik committed Oct 18, 2011
    We didn't call the superclass's init, and the superclass
    has a set_directory which does a little bit of work.
    
    Sadly, SUPER doesn't work inside of methods, so this is basically
    an inlined version.
Commits on Oct 17, 2011
  1. Document the Opcode PMC

    Benabik committed Oct 17, 2011
    Includes information on what various integer values mean (determined
    by examining the type definitions.
  2. OpLib PMC: Used fixed array for version()

    Benabik committed Oct 17, 2011
    I suppose it's a minor nit, but we know the length of the array
    exactly and it's never going to change, so use a FIA instead of an
    RIA.  Plus, using set_integer_keyed_int should be faster than
    push_integer.
  3. Document oplib PMC

    Benabik committed Oct 17, 2011
  4. PDD17: Mention init_int VTABLE

    Benabik committed Oct 17, 2011
    Message mostly copied from init_pmc explanation.  I figured a
    repetitive description is better than none.
  5. Add get_string to Fixed Float and Integer Array

    Benabik committed Oct 17, 2011
    Also adds tests for get_string to Boolean and PMC.
    
    This makes most Fixed*Array consistent.  The exception is
    FixedPMCArray which prints the number of elements instead of the
    elements themselves.  We may wish to change that, but I simply wanted
    to add the missing strings to avoid exceptions when printing.
Commits on Oct 16, 2011
  1. Update Packfile* PMC documentation

    Benabik committed Oct 16, 2011
    Packfile:
     - Does not have a uuid_length key
     - unpack takes a string, does not return one
    
    PackfileDebug:
     - Doesn't have two get_string_keyed_int methods
    
    PackfileOpMap
     - Isn't a debug segment
     - Has opcode mappings, not filename mappings
Commits on Sep 27, 2011
  1. select.t: add a TODO due to undefined behavior

    Benabik committed Aug 26, 2011
    From opengroup.org:
    
    "[...] what constitutes an exceptional condition is file type-specific.
     [...] For [non-socket] file types it is implementation-defined."
    
    This test fails on OS X and possibly other BSDs because they differ
    from Linux's behavior.  The entire test should probably use sockets
    because, if nothing else, select on files doesn't work in Windows.
Commits on Sep 4, 2011
  1. Fix g++ build errors

    Benabik committed Sep 4, 2011
    g++ is far pickier about casts, and it's good to make these things
    explicit.
Commits on Aug 25, 2011
  1. Make all versions of die opcode resumable

    Benabik committed Aug 25, 2011
    die_s and die_p both were resumable, but die_i_i wasn't.  Finding no
    particular reason that should be the case, I made them consistent.
    The three opcodes now share a lot of code.  Perhaps a common function
    should be factored out?
Commits on Jun 16, 2011
  1. [pct] Add file annotations to generated PIR

    Benabik committed Jun 16, 2011
    This allows all users of PCT::HLLCompiler to keep knowledge of the
    source file in the final result.
    
    Closes TT #2132
Commits on Jun 10, 2011
Commits on Jun 3, 2011
  1. Add myself to CREDITS

    Benabik committed Jun 3, 2011
    I like getting credit for things.
  2. PDD 19: Explain :method :multi(_)

    Benabik committed May 26, 2011
    I didn't expect :multi to need to add the type of the invocant.  So
    let's add an explanation to the first place I looked for an answer.