Properly blacklist ES6 for-of statement for TurboFan.

R=bmeurer@chromium.org
TEST=mjsunit/es6

Review URL: https://codereview.chromium.org/547343002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23769 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2bbeb652
......@@ -1082,6 +1082,7 @@ DONT_OPTIMIZE_NODE(ModulePath)
DONT_OPTIMIZE_NODE(ModuleUrl)
DONT_OPTIMIZE_NODE(ModuleStatement)
DONT_OPTIMIZE_NODE(WithStatement)
DONT_OPTIMIZE_NODE(ForOfStatement)
DONT_OPTIMIZE_NODE(TryCatchStatement)
DONT_OPTIMIZE_NODE(TryFinallyStatement)
DONT_OPTIMIZE_NODE(DebuggerStatement)
......@@ -1093,7 +1094,6 @@ DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(Yield)
DONT_SELFOPTIMIZE_NODE(DoWhileStatement)
DONT_SELFOPTIMIZE_NODE(WhileStatement)
DONT_SELFOPTIMIZE_NODE(ForStatement)
DONT_SELFOPTIMIZE_NODE(ForOfStatement)
DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(ForInStatement)
......
......@@ -401,6 +401,8 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
// TODO(turbofan): Make try-catch work and remove this bailout.
info()->function()->dont_optimize_reason() != kTryCatchStatement &&
info()->function()->dont_optimize_reason() != kTryFinallyStatement &&
// TODO(turbofan): Make ES6 for-of work and remove this bailout.
info()->function()->dont_optimize_reason() != kForOfStatement &&
// TODO(turbofan): Make OSR work and remove this bailout.
!info()->is_osr()) {
compiler::Pipeline pipeline(info());
......
......@@ -125,17 +125,11 @@
'es6/generators-parsing': [PASS, NO_VARIANTS],
'es6/generators-poisoned-properties': [PASS, NO_VARIANTS],
'es6/generators-relocation': [PASS, NO_VARIANTS],
'es6/iteration-semantics': [PASS, NO_VARIANTS],
'es6/regress/regress-2681': [PASS, NO_VARIANTS],
'es6/regress/regress-2691': [PASS, NO_VARIANTS],
'es6/regress/regress-3280': [PASS, NO_VARIANTS],
# Support for ES6 for-of iteration is missing.
'es6/array-iterator': [PASS, NO_VARIANTS],
'es6/iteration-semantics': [PASS, NO_VARIANTS],
'es6/string-iterator': [PASS, NO_VARIANTS],
'es6/typed-array-iterator': [PASS, NO_VARIANTS],
'es6/arguments-iterator': [PASS, NO_VARIANTS],
##############################################################################
# Too slow in debug mode with --stress-opt mode.
'compiler/regress-stacktrace-methods': [PASS, ['mode == debug', SKIP]],
......
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