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

Unified Diff: src/scanner.h

Issue 231073002: WIP: Parser: delay string internalization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 7 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
Index: src/scanner.h
diff --git a/src/scanner.h b/src/scanner.h
index 037da5b1739a302cbdda71ce50e82a3055c0d712..e8b2de0ccf362ff450b9d248129d5f9a0fb453c2 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -22,6 +22,8 @@ namespace internal {
class ParserRecorder;
+class ParserSymbol;
+class ParserSymbolTable;
// Returns the value (0 .. 15) of a hexadecimal character c.
@@ -376,9 +378,8 @@ class Scanner {
return next_.literal_chars->is_contextual_keyword(keyword);
}
- Handle<String> AllocateNextLiteralString(Isolate* isolate,
- PretenureFlag tenured);
- Handle<String> AllocateInternalizedString(Isolate* isolate);
+ ParserSymbol* CurrentString(ParserSymbolTable* symbol_table);
+ ParserSymbol* NextString(ParserSymbolTable* symbol_table);
double DoubleValue();
bool UnescapedLiteralMatches(const char* data, int length) {
« src/parser-symbol-table.cc ('K') | « src/rewriter.cc ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698