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 11232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11243 "bar();"); | 11243 "bar();"); |
11244 CHECK(value->IsNumber()); | 11244 CHECK(value->IsNumber()); |
11245 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); | 11245 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); |
11246 | 11246 |
11247 env->Exit(); | 11247 env->Exit(); |
11248 } | 11248 } |
11249 | 11249 |
11250 | 11250 |
11251 TEST(SetFunctionEntryHook) { | 11251 TEST(SetFunctionEntryHook) { |
11252 i::FLAG_allow_natives_syntax = true; | 11252 i::FLAG_allow_natives_syntax = true; |
| 11253 i::FLAG_use_inlining = false; |
11253 | 11254 |
11254 // Test setting and resetting the entry hook. | 11255 // Test setting and resetting the entry hook. |
11255 // Nulling it should always succeed. | 11256 // Nulling it should always succeed. |
11256 CHECK(v8::V8::SetFunctionEntryHook(NULL)); | 11257 CHECK(v8::V8::SetFunctionEntryHook(NULL)); |
11257 | 11258 |
11258 CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); | 11259 CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); |
11259 // Setting a hook while one's active should fail. | 11260 // Setting a hook while one's active should fail. |
11260 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); | 11261 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); |
11261 | 11262 |
11262 CHECK(v8::V8::SetFunctionEntryHook(NULL)); | 11263 CHECK(v8::V8::SetFunctionEntryHook(NULL)); |
(...skipping 6610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17873 | 17874 |
17874 i::Semaphore* sem_; | 17875 i::Semaphore* sem_; |
17875 volatile int sem_value_; | 17876 volatile int sem_value_; |
17876 }; | 17877 }; |
17877 | 17878 |
17878 | 17879 |
17879 THREADED_TEST(SemaphoreInterruption) { | 17880 THREADED_TEST(SemaphoreInterruption) { |
17880 ThreadInterruptTest().RunTest(); | 17881 ThreadInterruptTest().RunTest(); |
17881 } | 17882 } |
17882 #endif // WIN32 | 17883 #endif // WIN32 |
OLD | NEW |