• palfia@homejinni.com's avatar
    MIPS: ES6 symbols: Implement Symbol intrinsic and basic functionality · f4abb7af
    palfia@homejinni.com authored
    Port r13786 (b5e7a82a)
    
    Original commit message:
    - Add --harmony-symbols flag.
    - Add Symbol constructor; allow symbols as (unreplaced) return value from constructors.
    - Introduce %CreateSymbol and %_IsSymbol natives and respective instructions.
    - Extend 'typeof' code generation to handle symbols.
    - Extend CompareIC with a UNIQUE_NAMES state that (uniformly) handles internalized strings and symbols.
    - Property lookup delegates to SymbolDelegate object for symbols, which only carries the toString method.
    - Extend Object.prototype.toString to recognise symbols.
    
    Per the current draft spec, symbols are actually pseudo objects that are frozen with a null prototype and only one property (toString). For simplicity, we do not treat them as proper objects for now, although typeof will return "object". Only property access works as if they were (frozen) objects (via the internal delegate object).
    
    (Baseline CL: https://codereview.chromium.org/12223071/)
    
    BUG=
    
    Review URL: https://codereview.chromium.org/12447009
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13871 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    f4abb7af
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...
DEPS 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...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
SConstruct Loading commit data...