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

Unified Diff: src/lexer/experimental-scanner.cc

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.h ('k') | src/lexer/lexer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/experimental-scanner.cc
diff --git a/src/lexer/experimental-scanner.cc b/src/lexer/experimental-scanner.cc
index ab3cd7577dee0ef3158c8fd0a8905dda468ac652..77f3ae45965b98866aa1cc8833895b8413b56aa9 100644
--- a/src/lexer/experimental-scanner.cc
+++ b/src/lexer/experimental-scanner.cc
@@ -27,6 +27,12 @@
#include "experimental-scanner.h"
+#include "v8.h"
+
+#include "objects.h"
+#include "objects-inl.h"
+#include "spaces-inl.h"
+#include "isolate.h"
#include "lexer.h"
namespace v8 {
@@ -57,16 +63,17 @@ const byte* ReadFile(const char* name, Isolate* isolate, int* size) {
}
ExperimentalScanner::ExperimentalScanner(const char* fname,
- bool read_all_at_once)
+ bool read_all_at_once,
+ Isolate* isolate)
: current_(0),
fetched_(0),
read_all_at_once_(read_all_at_once),
source_(0),
length_(0) {
file_ = fopen(fname, "rb");
- scanner_ = new PushScanner(this);
+ scanner_ = new PushScanner(this, isolate->unicode_cache());
if (read_all_at_once_) {
- source_ = ReadFile(fname, NULL, &length_);
+ source_ = ReadFile(fname, isolate, &length_);
token_.resize(1500);
beg_.resize(1500);
end_.resize(1500);
« no previous file with comments | « src/lexer/experimental-scanner.h ('k') | src/lexer/lexer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698