From: mstarzinger Date: Thu, 10 Sep 2015 09:38:29 +0000 (-0700) Subject: [turbofan] Remove obsolete --turbo-try-catch flag. X-Git-Tag: upstream/4.7.83~367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a676da3ae0261a946f1cd8243286c3d5426ac80e;p=platform%2Fupstream%2Fv8.git [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} --- diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc index e1febbaf4..7b9e3662a 100644 --- a/src/compiler/ast-graph-builder.cc +++ b/src/compiler/ast-graph-builder.cc @@ -1422,9 +1422,6 @@ void AstGraphBuilder::VisitTryCatchStatement(TryCatchStatement* stmt) { // Evaluate the catch-block. VisitInScope(stmt->catch_block(), stmt->scope(), context); try_control.EndCatch(); - - // TODO(mstarzinger): Remove bailout once everything works. - if (!FLAG_turbo_try_catch) SetStackOverflow(); } diff --git a/src/flag-definitions.h b/src/flag-definitions.h index 401ec3aa0..54570084b 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -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_jt, true, "enable jump threading 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_stress_loop_peeling, false, "stress loop peeling optimization") diff --git a/test/cctest/compiler/test-run-deopt.cc b/test/cctest/compiler/test-run-deopt.cc index aedf668f4..7d1ae4f47 100644 --- a/test/cctest/compiler/test-run-deopt.cc +++ b/test/cctest/compiler/test-run-deopt.cc @@ -63,7 +63,6 @@ TEST(DeoptSimpleInExpr) { TEST(DeoptExceptionHandlerCatch) { FLAG_allow_natives_syntax = true; - FLAG_turbo_try_catch = true; FunctionTester T( "(function f() {" diff --git a/test/cctest/compiler/test-run-jsexceptions.cc b/test/cctest/compiler/test-run-jsexceptions.cc index 0e1977b72..2ba8fdfcc 100644 --- a/test/cctest/compiler/test-run-jsexceptions.cc +++ b/test/cctest/compiler/test-run-jsexceptions.cc @@ -59,7 +59,6 @@ TEST(ThrowMessageDirectly) { TEST(ThrowMessageIndirectly) { - i::FLAG_turbo_try_catch = true; i::FLAG_turbo_try_finally = true; static const char* src = "(function(a, b) {" @@ -81,7 +80,6 @@ TEST(ThrowMessageIndirectly) { TEST(Catch) { - i::FLAG_turbo_try_catch = true; const char* src = "(function(a,b) {" " var r = '-';" @@ -100,7 +98,6 @@ TEST(Catch) { TEST(CatchNested) { - i::FLAG_turbo_try_catch = true; const char* src = "(function(a,b) {" " var r = '-';" @@ -124,7 +121,6 @@ TEST(CatchNested) { TEST(CatchBreak) { - i::FLAG_turbo_try_catch = true; const char* src = "(function(a,b) {" " var r = '-';" @@ -149,7 +145,6 @@ TEST(CatchBreak) { TEST(CatchCall) { - i::FLAG_turbo_try_catch = true; const char* src = "(function(fun) {" " var r = '-';" @@ -213,7 +208,6 @@ TEST(FinallyBreak) { TEST(DeoptTry) { - i::FLAG_turbo_try_catch = true; const char* src = "(function f(a) {" " try {" @@ -230,7 +224,6 @@ TEST(DeoptTry) { TEST(DeoptCatch) { - i::FLAG_turbo_try_catch = true; const char* src = "(function f(a) {" " try {" diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index c1b5ecec0..df502cb17 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -19253,7 +19253,6 @@ void CheckCorrectThrow(const char* script) { TEST(AccessCheckThrows) { i::FLAG_allow_natives_syntax = true; - i::FLAG_turbo_try_catch = true; v8::V8::Initialize(); v8::V8::SetFailedAccessCheckCallbackFunction(&FailedAccessCheckThrows); v8::Isolate* isolate = CcTest::isolate(); diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc index 66e4f2a11..da2f6abfe 100644 --- a/test/cctest/test-heap.cc +++ b/test/cctest/test-heap.cc @@ -6354,7 +6354,6 @@ TEST(MessageObjectLeak) { const char* flag = "--turbo-filter=*"; FlagList::SetFlagsFromString(flag, StrLength(flag)); FLAG_always_opt = true; - FLAG_turbo_try_catch = true; FLAG_turbo_try_finally = true; CompileRun(test);