Reviewers: Toon Verwaest, Michael Starzinger,
Description:
ES6 symbols: Allow symbols as property names
Since symbols and strings share a common representation, most of this
change is
about consistently replacing 'String' with 'Name' in all places where
property
names are expected. In particular, no new logic at all is necessary for
maps,
property dictionaries, or transitions. :) The only places where an actual
case
distinction is needed have to do with generated type checks, and with
conversions of names to strings (especially in logger and profiler).
Left in some TODOs wrt to the API: interceptors and native getters don't
accept
symbols as property names yet, because that would require extending the
external
v8.h.
Other architectures yet to come.
[email protected],[email protected]
BUG=v8:2158
Please review this at https://codereview.chromium.org/12330012/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/bootstrapper.cc
M src/code-stubs.h
M src/cpu-profiler.h
M src/cpu-profiler.cc
M src/factory.h
M src/factory.cc
M src/handles.cc
M src/heap.h
M src/heap.cc
M src/ia32/code-stubs-ia32.h
M src/ia32/code-stubs-ia32.cc
M src/ia32/ic-ia32.cc
M src/ia32/macro-assembler-ia32.h
M src/ia32/macro-assembler-ia32.cc
M src/ia32/stub-cache-ia32.cc
M src/json-stringifier.h
M src/log.h
M src/log.cc
M src/objects-debug.cc
M src/objects-inl.h
M src/objects-printer.cc
M src/objects.h
M src/objects.cc
M src/profile-generator-inl.h
M src/profile-generator.h
M src/profile-generator.cc
M src/property.h
M src/proxy.js
M src/runtime.cc
M src/runtime.js
M src/stub-cache.h
M src/stub-cache.cc
M src/transitions-inl.h
M src/transitions.h
M src/transitions.cc
M src/v8globals.h
M src/v8natives.js
M test/mjsunit/harmony/symbols.js
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.