Cleanup of ScannerConstants, now named UnicodeCache.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 12 Apr 2011 08:27:38 +0000 (08:27 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 12 Apr 2011 08:27:38 +0000 (08:27 +0000)
commita932441a0cc85a89822a11a6e8011291979a1ca5
treeb10456a339319c600911c36ce6f6fd0acdce18a1
parent6baa8a2bde4ee0446ccde7695f11be17ee8cedf9
Cleanup of ScannerConstants, now named UnicodeCache.

The ScannerConstants class was originally static fields on the scanner class.
During creation of the stand-alone preparser and later isolates, it has been
moved into a separate class with a per-isolate instance.
It is used to hold caching unicode Predicate values.

This change renames the class to UnicodeCache, and passes a reference
to the instance down to methods that doesn't have an easy access to
an isolate (to avoid, e.g., having to do an Isolate::Current() for every
number parsed).

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7584 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
18 files changed:
src/conversions.cc
src/conversions.h
src/dateparser-inl.h
src/dateparser.h
src/heap.cc
src/isolate.cc
src/isolate.h
src/objects.cc
src/parser.cc
src/parser.h
src/preparser-api.cc
src/runtime.cc
src/scanner-base.cc
src/scanner-base.h
src/scanner.cc
src/scanner.h
test/cctest/test-conversions.cc
test/cctest/test-parsing.cc