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}
// 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();
}
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")
TEST(DeoptExceptionHandlerCatch) {
FLAG_allow_natives_syntax = true;
- FLAG_turbo_try_catch = true;
FunctionTester T(
"(function f() {"
TEST(ThrowMessageIndirectly) {
- i::FLAG_turbo_try_catch = true;
i::FLAG_turbo_try_finally = true;
static const char* src =
"(function(a, b) {"
TEST(Catch) {
- i::FLAG_turbo_try_catch = true;
const char* src =
"(function(a,b) {"
" var r = '-';"
TEST(CatchNested) {
- i::FLAG_turbo_try_catch = true;
const char* src =
"(function(a,b) {"
" var r = '-';"
TEST(CatchBreak) {
- i::FLAG_turbo_try_catch = true;
const char* src =
"(function(a,b) {"
" var r = '-';"
TEST(CatchCall) {
- i::FLAG_turbo_try_catch = true;
const char* src =
"(function(fun) {"
" var r = '-';"
TEST(DeoptTry) {
- i::FLAG_turbo_try_catch = true;
const char* src =
"(function f(a) {"
" try {"
TEST(DeoptCatch) {
- i::FLAG_turbo_try_catch = true;
const char* src =
"(function f(a) {"
" try {"
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();
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);