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 12169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12180 } | 12180 } |
12181 | 12181 |
12182 | 12182 |
12183 static bool MatchPointers(void* key1, void* key2) { | 12183 static bool MatchPointers(void* key1, void* key2) { |
12184 return key1 == key2; | 12184 return key1 == key2; |
12185 } | 12185 } |
12186 | 12186 |
12187 | 12187 |
12188 TEST(SetJitCodeEventHandler) { | 12188 TEST(SetJitCodeEventHandler) { |
12189 i::FLAG_stress_compaction = true; | 12189 i::FLAG_stress_compaction = true; |
| 12190 i::FLAG_incremental_marking = false; |
12190 const char* script = | 12191 const char* script = |
12191 "function bar() {" | 12192 "function bar() {" |
12192 " var sum = 0;" | 12193 " var sum = 0;" |
12193 " for (i = 0; i < 100; ++i)" | 12194 " for (i = 0; i < 100; ++i)" |
12194 " sum = foo(i);" | 12195 " sum = foo(i);" |
12195 " return sum;" | 12196 " return sum;" |
12196 "}" | 12197 "}" |
12197 "function foo(i) { return i * i; };" | 12198 "function foo(i) { return i * i; };" |
12198 "bar();"; | 12199 "bar();"; |
12199 | 12200 |
(...skipping 6657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18857 i::Semaphore* sem_; | 18858 i::Semaphore* sem_; |
18858 volatile int sem_value_; | 18859 volatile int sem_value_; |
18859 }; | 18860 }; |
18860 | 18861 |
18861 | 18862 |
18862 THREADED_TEST(SemaphoreInterruption) { | 18863 THREADED_TEST(SemaphoreInterruption) { |
18863 ThreadInterruptTest().RunTest(); | 18864 ThreadInterruptTest().RunTest(); |
18864 } | 18865 } |
18865 | 18866 |
18866 #endif // WIN32 | 18867 #endif // WIN32 |
OLD | NEW |