Commit 56f97543 authored by adamk's avatar adamk Committed by Commit bot

Remove --harmony-exponentiation-operator flag

It's shipped in M52.

R=caitp@igalia.com, littledan@chromium.org

Review-Url: https://codereview.chromium.org/2203843002
Cr-Commit-Position: refs/heads/master@{#38256}
parent 9a6a56d2
......@@ -2733,7 +2733,6 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(intl_extra)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding)
#ifdef V8_I18N_SUPPORT
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
......@@ -3322,7 +3321,6 @@ bool Genesis::InstallExperimentalNatives() {
static const char* harmony_object_own_property_descriptors_natives[] = {
nullptr};
static const char* harmony_array_prototype_values_natives[] = {nullptr};
static const char* harmony_exponentiation_operator_natives[] = {nullptr};
static const char* harmony_string_padding_natives[] = {
"native harmony-string-padding.js", nullptr};
#ifdef V8_I18N_SUPPORT
......
......@@ -231,7 +231,6 @@ DEFINE_IMPLICATION(es_staging, move_object_start)
#define HARMONY_SHIPPING(V) \
V(harmony_restrictive_declarations, \
"harmony limitations on sloppy mode function declarations") \
V(harmony_exponentiation_operator, "harmony exponentiation operator `**`") \
V(harmony_object_values_entries, "harmony Object.values / Object.entries") \
V(harmony_object_own_property_descriptors, \
"harmony Object.getOwnPropertyDescriptors()")
......
......@@ -229,12 +229,6 @@ class ParserBase : public Traits {
bool allow_##name() const { return allow_##name##_; } \
void set_allow_##name(bool allow) { allow_##name##_ = allow; }
#define SCANNER_ACCESSORS(name) \
bool allow_##name() const { return scanner_->allow_##name(); } \
void set_allow_##name(bool allow) { \
return scanner_->set_allow_##name(allow); \
}
ALLOW_ACCESSORS(lazy);
ALLOW_ACCESSORS(natives);
ALLOW_ACCESSORS(tailcalls);
......@@ -245,9 +239,7 @@ class ParserBase : public Traits {
ALLOW_ACCESSORS(harmony_async_await);
ALLOW_ACCESSORS(harmony_restrictive_generators);
ALLOW_ACCESSORS(harmony_trailing_commas);
SCANNER_ACCESSORS(harmony_exponentiation_operator);
#undef SCANNER_ACCESSORS
#undef ALLOW_ACCESSORS
uintptr_t stack_limit() const { return stack_limit_; }
......
......@@ -847,8 +847,6 @@ Parser::Parser(ParseInfo* info)
set_allow_harmony_function_sent(FLAG_harmony_function_sent);
set_allow_harmony_restrictive_declarations(
FLAG_harmony_restrictive_declarations);
set_allow_harmony_exponentiation_operator(
FLAG_harmony_exponentiation_operator);
set_allow_harmony_async_await(FLAG_harmony_async_await);
set_allow_harmony_restrictive_generators(FLAG_harmony_restrictive_generators);
set_allow_harmony_trailing_commas(FLAG_harmony_trailing_commas);
......@@ -5007,7 +5005,6 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser(
SET_ALLOW(harmony_do_expressions);
SET_ALLOW(harmony_for_in);
SET_ALLOW(harmony_function_sent);
SET_ALLOW(harmony_exponentiation_operator);
SET_ALLOW(harmony_restrictive_declarations);
SET_ALLOW(harmony_async_await);
SET_ALLOW(harmony_trailing_commas);
......
......@@ -41,8 +41,7 @@ Scanner::Scanner(UnicodeCache* unicode_cache)
bookmark_c0_(kNoBookmark),
octal_pos_(Location::invalid()),
decimal_with_leading_zero_pos_(Location::invalid()),
found_html_comment_(false),
allow_harmony_exponentiation_operator_(false) {
found_html_comment_(false) {
bookmark_current_.literal_chars = &bookmark_current_literal_;
bookmark_current_.raw_literal_chars = &bookmark_current_raw_literal_;
bookmark_next_.literal_chars = &bookmark_next_literal_;
......@@ -581,7 +580,7 @@ void Scanner::Scan() {
case '*':
// * *=
Advance();
if (c0_ == '*' && allow_harmony_exponentiation_operator()) {
if (c0_ == '*') {
token = Select('=', Token::ASSIGN_EXP, Token::EXP);
} else if (c0_ == '=') {
token = Select(Token::ASSIGN_MUL);
......
......@@ -493,12 +493,6 @@ class Scanner {
bool FoundHtmlComment() const { return found_html_comment_; }
#define DECLARE_ACCESSORS(name) \
inline bool allow_##name() const { return allow_##name##_; } \
inline void set_allow_##name(bool allow) { allow_##name##_ = allow; }
DECLARE_ACCESSORS(harmony_exponentiation_operator)
#undef ACCESSOR
private:
// The current and look-ahead token.
struct TokenDesc {
......@@ -828,8 +822,6 @@ class Scanner {
// Whether this scanner encountered an HTML comment.
bool found_html_comment_;
bool allow_harmony_exponentiation_operator_;
MessageTemplate::Template scanner_error_;
Location scanner_error_location_;
};
......
......@@ -1557,7 +1557,6 @@ enum ParserFlag {
kAllowNatives,
kAllowHarmonyFunctionSent,
kAllowHarmonyRestrictiveDeclarations,
kAllowHarmonyExponentiationOperator,
kAllowHarmonyForIn,
kAllowHarmonyAsyncAwait,
kAllowHarmonyRestrictiveGenerators,
......@@ -1579,8 +1578,6 @@ void SetParserFlags(i::ParserBase<Traits>* parser,
flags.Contains(kAllowHarmonyFunctionSent));
parser->set_allow_harmony_restrictive_declarations(
flags.Contains(kAllowHarmonyRestrictiveDeclarations));
parser->set_allow_harmony_exponentiation_operator(
flags.Contains(kAllowHarmonyExponentiationOperator));
parser->set_allow_harmony_for_in(flags.Contains(kAllowHarmonyForIn));
parser->set_allow_harmony_async_await(
flags.Contains(kAllowHarmonyAsyncAwait));
......@@ -7470,10 +7467,7 @@ TEST(ExponentiationOperator) {
};
// clang-format on
static const ParserFlag always_flags[] = {
kAllowHarmonyExponentiationOperator};
RunParserSyncTest(context_data, data, kSuccess, NULL, 0, always_flags,
arraysize(always_flags));
RunParserSyncTest(context_data, data, kSuccess);
}
TEST(ExponentiationOperatorErrors) {
......@@ -7520,10 +7514,7 @@ TEST(ExponentiationOperatorErrors) {
};
// clang-format on
static const ParserFlag always_flags[] = {
kAllowHarmonyExponentiationOperator};
RunParserSyncTest(context_data, error_data, kError, NULL, 0, always_flags,
arraysize(always_flags));
RunParserSyncTest(context_data, error_data, kError);
}
TEST(AsyncAwait) {
......
......@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-exponentiation-operator
function TestBasic() {
assertEquals(-(8 ** 2), -64);
assertEquals(+(8 ** 2), 64);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment