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

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

Issue 1242123006: [turbofan] Deferred block spilling heuristic - first step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tight splitting Created 5 years, 4 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
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 "test/cctest/compiler/function-tester.h" 7 #include "test/cctest/compiler/function-tester.h"
8 8
9 using namespace v8::internal; 9 using namespace v8::internal;
10 using namespace v8::internal::compiler; 10 using namespace v8::internal::compiler;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 CHECK(message->Get()->Equals(v8_str("Uncaught Error: Wat?"))); 76 CHECK(message->Get()->Equals(v8_str("Uncaught Error: Wat?")));
77 77
78 message = T.CheckThrowsReturnMessage(T.true_value(), T.Val("Kaboom!")); 78 message = T.CheckThrowsReturnMessage(T.true_value(), T.Val("Kaboom!"));
79 CHECK(message->Get()->Equals(v8_str("Uncaught Kaboom!"))); 79 CHECK(message->Get()->Equals(v8_str("Uncaught Kaboom!")));
80 } 80 }
81 81
82 82
83 TEST(Catch) { 83 TEST(Catch) {
84 i::FLAG_turbo_try_catch = true; 84 i::FLAG_turbo_try_catch = true;
85 const char* src = 85 const char* src =
86 "(function(a,b) {" 86 "(function foobar(a,b) {"
87 " var r = '-';" 87 " var r = '-';"
88 " try {" 88 " try {"
89 " r += 'A-';" 89 " r += 'A-';"
90 " throw 'B-';" 90 " throw 'B-';"
91 " } catch (e) {" 91 " } catch (e) {"
92 " r += e;" 92 " r += e;"
93 " }" 93 " }"
94 " return r;" 94 " return r;"
95 "})"; 95 "})";
96 FunctionTester T(src); 96 FunctionTester T(src);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 " } finally {" 272 " } finally {"
273 " %DeoptimizeFunction(f);" 273 " %DeoptimizeFunction(f);"
274 " }" 274 " }"
275 "})"; 275 "})";
276 FunctionTester T(src); 276 FunctionTester T(src);
277 277
278 #if 0 // TODO(mstarzinger): Enable once we can. 278 #if 0 // TODO(mstarzinger): Enable once we can.
279 T.CheckThrows(T.NewObject("new Error"), T.Val(1)); 279 T.CheckThrows(T.NewObject("new Error"), T.Val(1));
280 #endif 280 #endif
281 } 281 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698