Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: src/lexer/lexer.h

Issue 32573003: Experimental parser: add UnicodeCache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lexer/experimental-scanner.cc ('k') | src/lexer/lexer.re » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/lexer.h
diff --git a/src/lexer/lexer.h b/src/lexer/lexer.h
index 5839dfba60d32f2dfdbf157df417acf9c6b9dc7f..259f42628ddcd3c36671dbac60c45cef420ee21f 100644
--- a/src/lexer/lexer.h
+++ b/src/lexer/lexer.h
@@ -37,10 +37,11 @@ namespace v8 {
namespace internal {
class ExperimentalScanner;
+class UnicodeCache;
class PushScanner {
public:
- explicit PushScanner(ExperimentalScanner* sink);
+ explicit PushScanner(ExperimentalScanner* sink, UnicodeCache* unicode_cache);
~PushScanner();
@@ -48,6 +49,12 @@ class PushScanner {
uint32_t push(const void *input, int input_size);
private:
+ bool ValidIdentifierStart();
+ bool ValidIdentifierPart();
+ uc32 ScanHexNumber(int length);
+
+ UnicodeCache* unicode_cache_;
+
bool eof_;
int32_t state_;
int32_t condition_;
« no previous file with comments | « src/lexer/experimental-scanner.cc ('k') | src/lexer/lexer.re » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698