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

Unified Diff: src/scanner.h

Issue 975043002: Speed up string scanning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | src/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.h
diff --git a/src/scanner.h b/src/scanner.h
index 94f9102c042cddbbffe03865e7c533128017179b..2e96a99d874d8f22d4cf7524768f68c5fb3cd921 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -571,10 +571,10 @@ class Scanner {
AddRawLiteralChar(c0_);
}
c0_ = source_->Advance();
- if (check_surrogate) HandleLeadSurrugate();
+ if (check_surrogate) HandleLeadSurrogate();
}
- void HandleLeadSurrugate() {
+ void HandleLeadSurrogate() {
if (unibrow::Utf16::IsLeadSurrogate(c0_)) {
uc32 c1 = source_->Advance();
if (!unibrow::Utf16::IsTrailSurrogate(c1)) {
« no previous file with comments | « no previous file | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698