Create a separate class to encapsulate ScopeInfo serialization.
authorkaznacheev@chromium.org <kaznacheev@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 Jul 2010 11:18:09 +0000 (11:18 +0000)
committerkaznacheev@chromium.org <kaznacheev@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 Jul 2010 11:18:09 +0000 (11:18 +0000)
commitdb233217043ac3c9f3b467caab3daea241be8e51
tree914c4dd1a06bef3e05143622124746d8b6ed570b
parent3bc97b7d341bf0512b25556e43c80e8d4e377187
Create a separate class to encapsulate ScopeInfo serialization.

The static ScopeInfo members moved into this class.
The new class is named ScopeInfoObject which I am not proud of,
better ideas are very welcome.

Also got rid of the sentinels in the serialized scope info which saves 3 words per function
and is not slower.

Review URL: http://codereview.chromium.org/2908009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5067 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
15 files changed:
src/accessors.cc
src/compiler.cc
src/contexts.cc
src/factory.cc
src/factory.h
src/frames.cc
src/globals.h
src/heap.cc
src/objects-inl.h
src/objects.h
src/parser.cc
src/profile-generator.cc
src/runtime.cc
src/scopeinfo.cc
src/scopeinfo.h