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 16823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16834 v8::V8::RemoveGCEpilogueCallback(EpilogueCallbackSecond); | 16834 v8::V8::RemoveGCEpilogueCallback(EpilogueCallbackSecond); |
16835 HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); | 16835 HEAP->CollectAllGarbage(i::Heap::kNoGCFlags); |
16836 CHECK_EQ(2, prologue_call_count); | 16836 CHECK_EQ(2, prologue_call_count); |
16837 CHECK_EQ(2, epilogue_call_count); | 16837 CHECK_EQ(2, epilogue_call_count); |
16838 CHECK_EQ(2, prologue_call_count_second); | 16838 CHECK_EQ(2, prologue_call_count_second); |
16839 CHECK_EQ(2, epilogue_call_count_second); | 16839 CHECK_EQ(2, epilogue_call_count_second); |
16840 } | 16840 } |
16841 | 16841 |
16842 | 16842 |
16843 THREADED_TEST(AddToJSFunctionResultCache) { | 16843 THREADED_TEST(AddToJSFunctionResultCache) { |
| 16844 i::FLAG_stress_compaction = false; |
16844 i::FLAG_allow_natives_syntax = true; | 16845 i::FLAG_allow_natives_syntax = true; |
16845 v8::HandleScope scope(v8::Isolate::GetCurrent()); | 16846 v8::HandleScope scope(v8::Isolate::GetCurrent()); |
16846 | 16847 |
16847 LocalContext context; | 16848 LocalContext context; |
16848 | 16849 |
16849 const char* code = | 16850 const char* code = |
16850 "(function() {" | 16851 "(function() {" |
16851 " var key0 = 'a';" | 16852 " var key0 = 'a';" |
16852 " var key1 = 'b';" | 16853 " var key1 = 'b';" |
16853 " var r0 = %_GetFromCache(0, key0);" | 16854 " var r0 = %_GetFromCache(0, key0);" |
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19336 i::Semaphore* sem_; | 19337 i::Semaphore* sem_; |
19337 volatile int sem_value_; | 19338 volatile int sem_value_; |
19338 }; | 19339 }; |
19339 | 19340 |
19340 | 19341 |
19341 THREADED_TEST(SemaphoreInterruption) { | 19342 THREADED_TEST(SemaphoreInterruption) { |
19342 ThreadInterruptTest().RunTest(); | 19343 ThreadInterruptTest().RunTest(); |
19343 } | 19344 } |
19344 | 19345 |
19345 #endif // WIN32 | 19346 #endif // WIN32 |
OLD | NEW |