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

Unified Diff: src/lexer/lexer.h

Issue 28763003: Experimental parser: Starting to unify the ExperimentalScanner iface with Scanner iface. (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.gyp » ('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 d4bc071dd39c42c3e7690b5f5a4b9ac2ab099eb9..5839dfba60d32f2dfdbf157df417acf9c6b9dc7f 100644
--- a/src/lexer/lexer.h
+++ b/src/lexer/lexer.h
@@ -30,11 +30,12 @@
#ifndef V8_LEXER_LEXER_H
#define V8_LEXER_LEXER_H
-#include <vector>
-
#include "token.h"
#include "flags.h"
+namespace v8 {
+namespace internal {
+
class ExperimentalScanner;
class PushScanner {
@@ -66,26 +67,6 @@ class PushScanner {
ExperimentalScanner* sink_;
};
-class ExperimentalScanner {
- public:
- ExperimentalScanner(const char* fname, bool read_all_at_once);
- ~ExperimentalScanner();
- v8::internal::Token::Value Next(int* beg_pos, int* end_pos);
- void Record(v8::internal::Token::Value token, int beg_pos, int end_pos);
-
- private:
- void FillTokens();
- static const int BUFFER_SIZE = 256;
- std::vector<v8::internal::Token::Value> token_;
- std::vector<int> beg_;
- std::vector<int> end_;
- size_t current_;
- size_t fetched_;
- FILE* file_;
- PushScanner* scanner_;
- bool read_all_at_once_;
- const v8::internal::byte* source_;
- int length_;
-};
+} }
#endif // V8_LEXER_LEXER_H
« no previous file with comments | « src/lexer/experimental-scanner.cc ('k') | src/lexer/lexer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698