| 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 11258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11269 "bar();"); | 11269 "bar();"); |
| 11270 CHECK(value->IsNumber()); | 11270 CHECK(value->IsNumber()); |
| 11271 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); | 11271 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); |
| 11272 | 11272 |
| 11273 env->Exit(); | 11273 env->Exit(); |
| 11274 } | 11274 } |
| 11275 | 11275 |
| 11276 | 11276 |
| 11277 TEST(SetFunctionEntryHook) { | 11277 TEST(SetFunctionEntryHook) { |
| 11278 i::FLAG_allow_natives_syntax = true; | 11278 i::FLAG_allow_natives_syntax = true; |
| 11279 i::FLAG_use_inlining = false; |
| 11279 | 11280 |
| 11280 // Test setting and resetting the entry hook. | 11281 // Test setting and resetting the entry hook. |
| 11281 // Nulling it should always succeed. | 11282 // Nulling it should always succeed. |
| 11282 CHECK(v8::V8::SetFunctionEntryHook(NULL)); | 11283 CHECK(v8::V8::SetFunctionEntryHook(NULL)); |
| 11283 | 11284 |
| 11284 CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); | 11285 CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); |
| 11285 // Setting a hook while one's active should fail. | 11286 // Setting a hook while one's active should fail. |
| 11286 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); | 11287 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); |
| 11287 | 11288 |
| 11288 CHECK(v8::V8::SetFunctionEntryHook(NULL)); | 11289 CHECK(v8::V8::SetFunctionEntryHook(NULL)); |
| (...skipping 6610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17899 | 17900 |
| 17900 i::Semaphore* sem_; | 17901 i::Semaphore* sem_; |
| 17901 volatile int sem_value_; | 17902 volatile int sem_value_; |
| 17902 }; | 17903 }; |
| 17903 | 17904 |
| 17904 | 17905 |
| 17905 THREADED_TEST(SemaphoreInterruption) { | 17906 THREADED_TEST(SemaphoreInterruption) { |
| 17906 ThreadInterruptTest().RunTest(); | 17907 ThreadInterruptTest().RunTest(); |
| 17907 } | 17908 } |
| 17908 #endif // WIN32 | 17909 #endif // WIN32 |
| OLD | NEW |