v8/test
rossberg@chromium.org 090d09d685 ES6 symbols: Implement Symbol intrinsic and basic functionality
- 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/)

R=mstarzinger@chromium.org
BUG=v8:2158

Review URL: https://codereview.chromium.org/12296026

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13786 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-03-01 13:28:55 +00:00
..
benchmarks First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
cctest ES6 symbols: Introduce Symbol class, along with abstract Name class 2013-03-01 10:34:31 +00:00
es5conform First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
message Reland r13188, r13194, r13256 (Deferred formatting of error stack trace during GC). 2013-01-14 13:19:27 +00:00
mjsunit ES6 symbols: Implement Symbol intrinsic and basic functionality 2013-03-01 13:28:55 +00:00
mozilla De-dupe test/mozilla/mozilla.status 2013-01-18 15:01:53 +00:00
preparser Adjust Android test expectations. 2012-10-19 09:28:23 +00:00
sputnik First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
test262 Make __proto__ a foreign callback on Object.prototype. 2013-02-26 10:46:00 +00:00