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

Side by Side Diff: test/cctest/test-api.cc

Issue 144533005: More cctest fixes regarding lifetime/ownership. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Disable isolate disposal at end of cctest. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/cctest/test-strings.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 15277 matching lines...) Expand 10 before | Expand all | Expand 10 after
15288 i::Vector<const i::uc16>(uc16_content, i::StrLength(ascii_content))); 15288 i::Vector<const i::uc16>(uc16_content, i::StrLength(ascii_content)));
15289 15289
15290 v8::TryCatch try_catch; 15290 v8::TryCatch try_catch;
15291 timeout_thread.Start(); 15291 timeout_thread.Start();
15292 15292
15293 CompileRun("/((a*)*)*b/.exec(a)"); 15293 CompileRun("/((a*)*)*b/.exec(a)");
15294 CHECK(try_catch.HasTerminated()); 15294 CHECK(try_catch.HasTerminated());
15295 15295
15296 timeout_thread.Join(); 15296 timeout_thread.Join();
15297 15297
15298 delete regexp_interruption_data.string_resource;
15299 regexp_interruption_data.string.Reset(); 15298 regexp_interruption_data.string.Reset();
15300 } 15299 }
15301 15300
15302 #endif // V8_INTERPRETED_REGEXP 15301 #endif // V8_INTERPRETED_REGEXP
15303 15302
15304 15303
15305 // Test that we cannot set a property on the global object if there 15304 // Test that we cannot set a property on the global object if there
15306 // is a read-only property in the prototype chain. 15305 // is a read-only property in the prototype chain.
15307 TEST(ReadOnlyPropertyInGlobalProto) { 15306 TEST(ReadOnlyPropertyInGlobalProto) {
15308 i::FLAG_es5_readonly = true; 15307 i::FLAG_es5_readonly = true;
(...skipping 6661 matching lines...) Expand 10 before | Expand all | Expand 10 after
21970 21969
21971 21970
21972 TEST(TestFunctionCallOptimization) { 21971 TEST(TestFunctionCallOptimization) {
21973 i::FLAG_allow_natives_syntax = true; 21972 i::FLAG_allow_natives_syntax = true;
21974 ApiCallOptimizationChecker checker; 21973 ApiCallOptimizationChecker checker;
21975 checker.Run(true, true); 21974 checker.Run(true, true);
21976 checker.Run(false, true); 21975 checker.Run(false, true);
21977 checker.Run(true, false); 21976 checker.Run(true, false);
21978 checker.Run(false, false); 21977 checker.Run(false, false);
21979 } 21978 }
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698