• rossberg@chromium.org's avatar
    MIPS: Implement rudimentary module linking. · 977b6027
    rossberg@chromium.org authored
    Port r11336 (6dd4e844)
    
    Original commit message:
    
    Implement rudimentary module linking.
    
    Constructs the (generally cyclic) graph of module instance objects
    and populates their exports. Any exports other than nested modules
    are currently set to 'undefined' (but already present as properties).
    
    Details:
    - Added new type JSModule for instance objects: a JSObject carrying a context.
    - Statically allocate instance objects for all module literals (in parser 8-}).
    - Extend interfaces to record and unify concrete instance objects,
    and to support iteration over members.
    - Introduce new runtime function for pushing module contexts.
    - Generate code for allocating, initializing, and setting module contexts,
    and for populating instance objects from module literals.
    Currently, all non-module exports are still initialized with 'undefined'.
    - Module aliases are resolved statically, so no special code is required.
    - Make sure that code containing module constructs is never optimized
    (macrofy AST node construction flag setting while we're at it).
    - Add test case checking linkage.
    
    BUG=
    TEST=
    
    Review URL: https://chromiumcodereview.appspot.com/10035028
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11374 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    977b6027
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
preparser Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
SConstruct Loading commit data...