Commit 88a795d1 authored by neis's avatar neis Committed by Commit bot

Remove the --ignition-generators flag.

This flag has been enabled by default for over a month now.

R=mstarzinger@chromium.org, rmcilroy@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2176143002
Cr-Commit-Position: refs/heads/master@{#38020}
parent 63ea19ba
...@@ -450,11 +450,6 @@ bool ShouldUseIgnition(CompilationInfo* info) { ...@@ -450,11 +450,6 @@ bool ShouldUseIgnition(CompilationInfo* info) {
return info->shared_info()->HasBytecodeArray(); return info->shared_info()->HasBytecodeArray();
} }
// For generator or async functions we might avoid Ignition wholesale.
if (info->shared_info()->is_resumable() && !FLAG_ignition_generators) {
return false;
}
// Since we can't OSR from Ignition, skip Ignition for asm.js functions. // Since we can't OSR from Ignition, skip Ignition for asm.js functions.
if (info->shared_info()->asm_function()) { if (info->shared_info()->asm_function()) {
return false; return false;
......
...@@ -297,8 +297,6 @@ DEFINE_BOOL(string_slices, true, "use string slices") ...@@ -297,8 +297,6 @@ DEFINE_BOOL(string_slices, true, "use string slices")
// Flags for Ignition. // Flags for Ignition.
DEFINE_BOOL(ignition, false, "use ignition interpreter") DEFINE_BOOL(ignition, false, "use ignition interpreter")
DEFINE_BOOL(ignition_eager, false, "eagerly compile and parse with ignition") DEFINE_BOOL(ignition_eager, false, "eagerly compile and parse with ignition")
DEFINE_BOOL(ignition_generators, true,
"enable experimental ignition support for generators")
DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter")
DEFINE_BOOL(ignition_deadcode, true, DEFINE_BOOL(ignition_deadcode, true,
"use ignition dead code elimination optimizer") "use ignition dead code elimination optimizer")
......
...@@ -44,7 +44,6 @@ class ProgramOptions final { ...@@ -44,7 +44,6 @@ class ProgramOptions final {
execute_(true), execute_(true),
top_level_(false), top_level_(false),
do_expressions_(false), do_expressions_(false),
ignition_generators_(false),
verbose_(false), verbose_(false),
const_pool_type_( const_pool_type_(
BytecodeExpectationsPrinter::ConstantPoolType::kMixed) {} BytecodeExpectationsPrinter::ConstantPoolType::kMixed) {}
...@@ -65,7 +64,6 @@ class ProgramOptions final { ...@@ -65,7 +64,6 @@ class ProgramOptions final {
bool execute() const { return execute_; } bool execute() const { return execute_; }
bool top_level() const { return top_level_; } bool top_level() const { return top_level_; }
bool do_expressions() const { return do_expressions_; } bool do_expressions() const { return do_expressions_; }
bool ignition_generators() const { return ignition_generators_; }
bool verbose() const { return verbose_; } bool verbose() const { return verbose_; }
bool suppress_runtime_errors() const { return rebaseline_ && !verbose_; } bool suppress_runtime_errors() const { return rebaseline_ && !verbose_; }
BytecodeExpectationsPrinter::ConstantPoolType const_pool_type() const { BytecodeExpectationsPrinter::ConstantPoolType const_pool_type() const {
...@@ -85,7 +83,6 @@ class ProgramOptions final { ...@@ -85,7 +83,6 @@ class ProgramOptions final {
bool execute_; bool execute_;
bool top_level_; bool top_level_;
bool do_expressions_; bool do_expressions_;
bool ignition_generators_;
bool verbose_; bool verbose_;
BytecodeExpectationsPrinter::ConstantPoolType const_pool_type_; BytecodeExpectationsPrinter::ConstantPoolType const_pool_type_;
std::vector<std::string> input_filenames_; std::vector<std::string> input_filenames_;
...@@ -205,8 +202,6 @@ ProgramOptions ProgramOptions::FromCommandLine(int argc, char** argv) { ...@@ -205,8 +202,6 @@ ProgramOptions ProgramOptions::FromCommandLine(int argc, char** argv) {
options.top_level_ = true; options.top_level_ = true;
} else if (strcmp(argv[i], "--do-expressions") == 0) { } else if (strcmp(argv[i], "--do-expressions") == 0) {
options.do_expressions_ = true; options.do_expressions_ = true;
} else if (strcmp(argv[i], "--ignition-generators") == 0) {
options.ignition_generators_ = true;
} else if (strcmp(argv[i], "--verbose") == 0) { } else if (strcmp(argv[i], "--verbose") == 0) {
options.verbose_ = true; options.verbose_ = true;
} else if (strncmp(argv[i], "--output=", 9) == 0) { } else if (strncmp(argv[i], "--output=", 9) == 0) {
...@@ -311,8 +306,6 @@ void ProgramOptions::UpdateFromHeader(std::istream& stream) { ...@@ -311,8 +306,6 @@ void ProgramOptions::UpdateFromHeader(std::istream& stream) {
top_level_ = ParseBoolean(line.c_str() + 11); top_level_ = ParseBoolean(line.c_str() + 11);
} else if (line.compare(0, 16, "do expressions: ") == 0) { } else if (line.compare(0, 16, "do expressions: ") == 0) {
do_expressions_ = ParseBoolean(line.c_str() + 16); do_expressions_ = ParseBoolean(line.c_str() + 16);
} else if (line.compare(0, 21, "ignition generators: ") == 0) {
ignition_generators_ = ParseBoolean(line.c_str() + 21);
} else if (line == "---") { } else if (line == "---") {
break; break;
} else if (line.empty()) { } else if (line.empty()) {
...@@ -337,7 +330,6 @@ void ProgramOptions::PrintHeader(std::ostream& stream) const { // NOLINT ...@@ -337,7 +330,6 @@ void ProgramOptions::PrintHeader(std::ostream& stream) const { // NOLINT
if (top_level_) stream << "\ntop level: yes"; if (top_level_) stream << "\ntop level: yes";
if (do_expressions_) stream << "\ndo expressions: yes"; if (do_expressions_) stream << "\ndo expressions: yes";
if (ignition_generators_) stream << "\nignition generators: yes";
stream << "\n\n"; stream << "\n\n";
} }
...@@ -443,7 +435,6 @@ void GenerateExpectationsFile(std::ostream& stream, // NOLINT ...@@ -443,7 +435,6 @@ void GenerateExpectationsFile(std::ostream& stream, // NOLINT
} }
if (options.do_expressions()) i::FLAG_harmony_do_expressions = true; if (options.do_expressions()) i::FLAG_harmony_do_expressions = true;
if (options.ignition_generators()) i::FLAG_ignition_generators = true;
stream << "#\n# Autogenerated by generate-bytecode-expectations.\n#\n\n"; stream << "#\n# Autogenerated by generate-bytecode-expectations.\n#\n\n";
options.PrintHeader(stream); options.PrintHeader(stream);
...@@ -496,7 +487,6 @@ void PrintUsage(const char* exec_path) { ...@@ -496,7 +487,6 @@ void PrintUsage(const char* exec_path) {
"Specify the name of the test function.\n" "Specify the name of the test function.\n"
" --top-level Process top level code, not the top-level function.\n" " --top-level Process top level code, not the top-level function.\n"
" --do-expressions Enable harmony_do_expressions flag.\n" " --do-expressions Enable harmony_do_expressions flag.\n"
" --ignition-generators Enable ignition_generators flag.\n"
" --output=file.name\n" " --output=file.name\n"
" Specify the output file. If not specified, output goes to " " Specify the output file. If not specified, output goes to "
"stdout.\n" "stdout.\n"
......
...@@ -2224,9 +2224,6 @@ TEST(ClassAndSuperClass) { ...@@ -2224,9 +2224,6 @@ TEST(ClassAndSuperClass) {
} }
TEST(Generators) { TEST(Generators) {
bool old_flag = FLAG_ignition_generators;
FLAG_ignition_generators = true;
InitializedIgnitionHandleScope scope; InitializedIgnitionHandleScope scope;
BytecodeExpectationsPrinter printer(CcTest::isolate(), BytecodeExpectationsPrinter printer(CcTest::isolate(),
ConstantPoolType::kMixed); ConstantPoolType::kMixed);
...@@ -2246,8 +2243,6 @@ TEST(Generators) { ...@@ -2246,8 +2243,6 @@ TEST(Generators) {
CHECK(CompareTexts(BuildActual(printer, snippets), CHECK(CompareTexts(BuildActual(printer, snippets),
LoadGolden("Generators.golden"))); LoadGolden("Generators.golden")));
FLAG_ignition_generators = old_flag;
} }
} // namespace interpreter } // namespace interpreter
......
...@@ -4183,9 +4183,6 @@ TEST(InterpreterIllegalConstDeclaration) { ...@@ -4183,9 +4183,6 @@ TEST(InterpreterIllegalConstDeclaration) {
} }
TEST(InterpreterGenerators) { TEST(InterpreterGenerators) {
bool old_flag = FLAG_ignition_generators;
FLAG_ignition_generators = true;
HandleAndZoneScope handles; HandleAndZoneScope handles;
i::Isolate* isolate = handles.main_isolate(); i::Isolate* isolate = handles.main_isolate();
i::Factory* factory = isolate->factory(); i::Factory* factory = isolate->factory();
...@@ -4207,8 +4204,6 @@ TEST(InterpreterGenerators) { ...@@ -4207,8 +4204,6 @@ TEST(InterpreterGenerators) {
Handle<i::Object> return_value = callable().ToHandleChecked(); Handle<i::Object> return_value = callable().ToHandleChecked();
CHECK(return_value->SameValue(*tests[i].second)); CHECK(return_value->SameValue(*tests[i].second));
} }
FLAG_ignition_generators = old_flag;
} }
} // namespace interpreter } // namespace interpreter
......
...@@ -23,8 +23,7 @@ ...@@ -23,8 +23,7 @@
"resources": ["generators.js"], "resources": ["generators.js"],
"flags": [ "flags": [
"--harmony-function-sent", "--harmony-function-sent",
"--ignition", "--ignition"
"--ignition-generators"
], ],
"results_regexp": "^Generators\\-Generators\\(Score\\): (.+)$" "results_regexp": "^Generators\\-Generators\\(Score\\): (.+)$"
}, },
...@@ -36,7 +35,6 @@ ...@@ -36,7 +35,6 @@
"flags": [ "flags": [
"--harmony-function-sent", "--harmony-function-sent",
"--ignition", "--ignition",
"--ignition-generators",
"--turbo", "--turbo",
"--turbo-from-bytecode" "--turbo-from-bytecode"
], ],
......
// Copyright 2016 the V8 project authors. All rights reserved. // Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Flags: --ignition-generators
function* f() { yield } function* f() { yield }
......
*%(basename)s:7: 42 *%(basename)s:5: 42
function* f() { yield } function* f() { yield }
^ ^
// Copyright 2016 the V8 project authors. All rights reserved. // Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Flags: --ignition-generators
function* f() { yield } function* f() { yield }
......
*%(basename)s:7: 42 *%(basename)s:5: 42
function* f() { yield } function* f() { yield }
^ ^
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --ignition-generators // Flags: --expose-debug-as debug
var Debug = debug.Debug; var Debug = debug.Debug;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --ignition-generators // Flags: --expose-debug-as debug
var Debug = debug.Debug; var Debug = debug.Debug;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --ignition-generators // Flags: --expose-debug-as debug
Debug = debug.Debug Debug = debug.Debug
var exception = null; var exception = null;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --allow-natives-syntax --ignition-generators // Flags: --expose-debug-as debug --allow-natives-syntax
var Debug = debug.Debug; var Debug = debug.Debug;
var LiveEdit = Debug.LiveEdit; var LiveEdit = Debug.LiveEdit;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --ignition-generators // Flags: --expose-debug-as debug
var Debug = debug.Debug; var Debug = debug.Debug;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --expose-gc --ignition-generators // Flags: --expose-gc
// Test generator iteration. // Test generator iteration.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --ignition-generators // Flags: --expose-debug-as debug
// Test the mirror object for functions. // Test the mirror object for functions.
function *generator(f) { function *generator(f) {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax --ignition-generators // Flags: --allow-natives-syntax
// Test instantations of generators. // Test instantations of generators.
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --ignition-generators
// Test basic generator syntax. // Test basic generator syntax.
// Yield statements. // Yield statements.
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --ignition-generators
(function testRestrictedPropertiesStrict() { (function testRestrictedPropertiesStrict() {
function* generator() { "use strict"; } function* generator() { "use strict"; }
assertFalse(generator.hasOwnProperty("arguments")); assertFalse(generator.hasOwnProperty("arguments"));
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --expose-debug-as debug --ignition-generators // Flags: --expose-debug-as debug
var Debug = debug.Debug; var Debug = debug.Debug;
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --ignition-generators
// Test aspects of the generator runtime. // Test aspects of the generator runtime.
// See: // See:
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --ignition-generators
// Test generator states. // Test generator states.
function Foo() {} function Foo() {}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-async-await // Flags: --harmony-async-await
// Flags: --expose-debug-as debug --allow-natives-syntax --ignition-generators // Flags: --expose-debug-as debug --allow-natives-syntax
var Debug = debug.Debug; var Debug = debug.Debug;
var LiveEdit = Debug.LiveEdit; var LiveEdit = Debug.LiveEdit;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --ignition --ignition-generators --harmony-do-expressions // Flags: --ignition --harmony-do-expressions
// Flags: --allow-natives-syntax --turbo --turbo-from-bytecode // Flags: --allow-natives-syntax --turbo --turbo-from-bytecode
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --ignition-generators --harmony-do-expressions // Flags: --harmony-do-expressions --allow-natives-syntax
// Flags: --allow-natives-syntax
function MaybeOptimizeOrDeoptimize(f) { function MaybeOptimizeOrDeoptimize(f) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --harmony-async-await --ignition-generators // Flags: --harmony-async-await
try { try {
} catch(e) {; } } catch(e) {; }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --ignition --ignition-generators --ignition-filter=-foo // Flags: --ignition --ignition-filter=-foo
function* foo() { yield 42 } function* foo() { yield 42 }
function* goo() { yield 42 } function* goo() { yield 42 }
......
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