Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: test/cctest/compiler/test-run-deopt.cc

Issue 1335543002: [turbofan] Remove obsolete --turbo-try-catch flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | test/cctest/compiler/test-run-jsexceptions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/frames-inl.h" 7 #include "src/frames-inl.h"
8 #include "test/cctest/cctest.h" 8 #include "test/cctest/cctest.h"
9 #include "test/cctest/compiler/function-tester.h" 9 #include "test/cctest/compiler/function-tester.h"
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 " return d + a;" 56 " return d + a;"
57 "})"); 57 "})");
58 58
59 InstallIsOptimizedHelper(CcTest::isolate()); 59 InstallIsOptimizedHelper(CcTest::isolate());
60 T.CheckCall(T.Val(6), T.Val(3)); 60 T.CheckCall(T.Val(6), T.Val(3));
61 } 61 }
62 62
63 63
64 TEST(DeoptExceptionHandlerCatch) { 64 TEST(DeoptExceptionHandlerCatch) {
65 FLAG_allow_natives_syntax = true; 65 FLAG_allow_natives_syntax = true;
66 FLAG_turbo_try_catch = true;
67 66
68 FunctionTester T( 67 FunctionTester T(
69 "(function f() {" 68 "(function f() {"
70 " var is_opt = IsOptimized;" 69 " var is_opt = IsOptimized;"
71 " try {" 70 " try {"
72 " DeoptAndThrow(f);" 71 " DeoptAndThrow(f);"
73 " } catch (e) {" 72 " } catch (e) {"
74 " return is_opt();" 73 " return is_opt();"
75 " }" 74 " }"
76 "})"); 75 "})");
(...skipping 30 matching lines...) Expand all
107 FLAG_allow_natives_syntax = true; 106 FLAG_allow_natives_syntax = true;
108 107
109 FunctionTester T( 108 FunctionTester T(
110 "(function foo() {" 109 "(function foo() {"
111 " %DeoptimizeFunction(foo);" 110 " %DeoptimizeFunction(foo);"
112 " return 1;" 111 " return 1;"
113 "})"); 112 "})");
114 113
115 T.CheckCall(T.Val(1)); 114 T.CheckCall(T.Val(1));
116 } 115 }
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/cctest/compiler/test-run-jsexceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698