Commit a676da3a authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[turbofan] Remove obsolete --turbo-try-catch flag.

This removes the aforementioned flag which has been on by default for a
while now. Note that this does not control optimization decisions, only
the last-resort bailout in the graph builder.

R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30673}
parent cfbe3f64
...@@ -1422,9 +1422,6 @@ void AstGraphBuilder::VisitTryCatchStatement(TryCatchStatement* stmt) { ...@@ -1422,9 +1422,6 @@ void AstGraphBuilder::VisitTryCatchStatement(TryCatchStatement* stmt) {
// Evaluate the catch-block. // Evaluate the catch-block.
VisitInScope(stmt->catch_block(), stmt->scope(), context); VisitInScope(stmt->catch_block(), stmt->scope(), context);
try_control.EndCatch(); try_control.EndCatch();
// TODO(mstarzinger): Remove bailout once everything works.
if (!FLAG_turbo_try_catch) SetStackOverflow();
} }
......
...@@ -445,7 +445,6 @@ DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL, ...@@ -445,7 +445,6 @@ DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL,
DEFINE_BOOL(turbo_move_optimization, true, "optimize gap moves in TurboFan") DEFINE_BOOL(turbo_move_optimization, true, "optimize gap moves in TurboFan")
DEFINE_BOOL(turbo_jt, true, "enable jump threading in TurboFan") DEFINE_BOOL(turbo_jt, true, "enable jump threading in TurboFan")
DEFINE_BOOL(turbo_osr, true, "enable OSR in TurboFan") DEFINE_BOOL(turbo_osr, true, "enable OSR in TurboFan")
DEFINE_BOOL(turbo_try_catch, true, "enable try-catch support in TurboFan")
DEFINE_BOOL(turbo_try_finally, false, "enable try-finally support in TurboFan") DEFINE_BOOL(turbo_try_finally, false, "enable try-finally support in TurboFan")
DEFINE_BOOL(turbo_stress_loop_peeling, false, DEFINE_BOOL(turbo_stress_loop_peeling, false,
"stress loop peeling optimization") "stress loop peeling optimization")
......
...@@ -63,7 +63,6 @@ TEST(DeoptSimpleInExpr) { ...@@ -63,7 +63,6 @@ TEST(DeoptSimpleInExpr) {
TEST(DeoptExceptionHandlerCatch) { TEST(DeoptExceptionHandlerCatch) {
FLAG_allow_natives_syntax = true; FLAG_allow_natives_syntax = true;
FLAG_turbo_try_catch = true;
FunctionTester T( FunctionTester T(
"(function f() {" "(function f() {"
......
...@@ -59,7 +59,6 @@ TEST(ThrowMessageDirectly) { ...@@ -59,7 +59,6 @@ TEST(ThrowMessageDirectly) {
TEST(ThrowMessageIndirectly) { TEST(ThrowMessageIndirectly) {
i::FLAG_turbo_try_catch = true;
i::FLAG_turbo_try_finally = true; i::FLAG_turbo_try_finally = true;
static const char* src = static const char* src =
"(function(a, b) {" "(function(a, b) {"
...@@ -81,7 +80,6 @@ TEST(ThrowMessageIndirectly) { ...@@ -81,7 +80,6 @@ TEST(ThrowMessageIndirectly) {
TEST(Catch) { TEST(Catch) {
i::FLAG_turbo_try_catch = true;
const char* src = const char* src =
"(function(a,b) {" "(function(a,b) {"
" var r = '-';" " var r = '-';"
...@@ -100,7 +98,6 @@ TEST(Catch) { ...@@ -100,7 +98,6 @@ TEST(Catch) {
TEST(CatchNested) { TEST(CatchNested) {
i::FLAG_turbo_try_catch = true;
const char* src = const char* src =
"(function(a,b) {" "(function(a,b) {"
" var r = '-';" " var r = '-';"
...@@ -124,7 +121,6 @@ TEST(CatchNested) { ...@@ -124,7 +121,6 @@ TEST(CatchNested) {
TEST(CatchBreak) { TEST(CatchBreak) {
i::FLAG_turbo_try_catch = true;
const char* src = const char* src =
"(function(a,b) {" "(function(a,b) {"
" var r = '-';" " var r = '-';"
...@@ -149,7 +145,6 @@ TEST(CatchBreak) { ...@@ -149,7 +145,6 @@ TEST(CatchBreak) {
TEST(CatchCall) { TEST(CatchCall) {
i::FLAG_turbo_try_catch = true;
const char* src = const char* src =
"(function(fun) {" "(function(fun) {"
" var r = '-';" " var r = '-';"
...@@ -213,7 +208,6 @@ TEST(FinallyBreak) { ...@@ -213,7 +208,6 @@ TEST(FinallyBreak) {
TEST(DeoptTry) { TEST(DeoptTry) {
i::FLAG_turbo_try_catch = true;
const char* src = const char* src =
"(function f(a) {" "(function f(a) {"
" try {" " try {"
...@@ -230,7 +224,6 @@ TEST(DeoptTry) { ...@@ -230,7 +224,6 @@ TEST(DeoptTry) {
TEST(DeoptCatch) { TEST(DeoptCatch) {
i::FLAG_turbo_try_catch = true;
const char* src = const char* src =
"(function f(a) {" "(function f(a) {"
" try {" " try {"
......
...@@ -19253,7 +19253,6 @@ void CheckCorrectThrow(const char* script) { ...@@ -19253,7 +19253,6 @@ void CheckCorrectThrow(const char* script) {
TEST(AccessCheckThrows) { TEST(AccessCheckThrows) {
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
i::FLAG_turbo_try_catch = true;
v8::V8::Initialize(); v8::V8::Initialize();
v8::V8::SetFailedAccessCheckCallbackFunction(&FailedAccessCheckThrows); v8::V8::SetFailedAccessCheckCallbackFunction(&FailedAccessCheckThrows);
v8::Isolate* isolate = CcTest::isolate(); v8::Isolate* isolate = CcTest::isolate();
......
...@@ -6354,7 +6354,6 @@ TEST(MessageObjectLeak) { ...@@ -6354,7 +6354,6 @@ TEST(MessageObjectLeak) {
const char* flag = "--turbo-filter=*"; const char* flag = "--turbo-filter=*";
FlagList::SetFlagsFromString(flag, StrLength(flag)); FlagList::SetFlagsFromString(flag, StrLength(flag));
FLAG_always_opt = true; FLAG_always_opt = true;
FLAG_turbo_try_catch = true;
FLAG_turbo_try_finally = true; FLAG_turbo_try_finally = true;
CompileRun(test); CompileRun(test);
......
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