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

Unified Diff: src/scanner.h

Issue 314603004: Parser: Delay internalizing strings and values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 eeed183cdfcf5f2ee8c64d1a813db4c2f697dab9..a527914fc6ff7b86a5c72ce6be8e48d34b5326f7 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -21,6 +21,8 @@ namespace v8 {
namespace internal {
+class AstString;
+class AstStringTable;
class ParserRecorder;
@@ -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);
+ const AstString* CurrentSymbol(AstStringTable* string_table);
+ const AstString* NextSymbol(AstStringTable* string_table);
double DoubleValue();
bool UnescapedLiteralMatches(const char* data, int length) {

Powered by Google App Engine
This is Rietveld 408576698