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

Unified Diff: src/scanner.h

Issue 953563002: Implement experimental exponentiation operator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more tests and fix some bugs 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
« src/compiler/typer.cc ('K') | « src/runtime.js ('k') | 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 86a0098f86c0b4c97b4958148c4f6d27f04ce9b8..8c30871a6d1354369cc9d2746f826603cbeb94c2 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -470,6 +470,8 @@ class Scanner {
void SetHarmonyTemplates(bool templates) { harmony_templates_ = templates; }
bool HarmonyUnicode() const { return harmony_unicode_; }
void SetHarmonyUnicode(bool unicode) { harmony_unicode_ = unicode; }
+ bool HarmonyExponentiation() const { return harmony_exponentiation_; }
+ void SetHarmonyExponentiation(bool exp) { harmony_exponentiation_ = exp; }
// Returns true if there was a line terminator before the peek'ed token,
// possibly inside a multi-line comment.
@@ -744,6 +746,8 @@ class Scanner {
bool harmony_templates_;
// Whether we allow \u{xxxxx}.
bool harmony_unicode_;
+ // Whether we allow x ** y or x **= y
+ bool harmony_exponentiation_;
};
} } // namespace v8::internal
« src/compiler/typer.cc ('K') | « src/runtime.js ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698