| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |