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 16404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16415 } | 16415 } |
16416 { | 16416 { |
16417 v8::Isolate::Scope isolate_scope(isolate); | 16417 v8::Isolate::Scope isolate_scope(isolate); |
16418 v8::HandleScope handle_scope; | 16418 v8::HandleScope handle_scope; |
16419 context = v8::Context::New(); | 16419 context = v8::Context::New(); |
16420 v8::Context::Scope context_scope(context); | 16420 v8::Context::Scope context_scope(context); |
16421 Local<Value> v = CompileRun("22"); | 16421 Local<Value> v = CompileRun("22"); |
16422 CHECK(v->IsNumber()); | 16422 CHECK(v->IsNumber()); |
16423 CHECK_EQ(22, static_cast<int>(v->NumberValue())); | 16423 CHECK_EQ(22, static_cast<int>(v->NumberValue())); |
16424 } | 16424 } |
| 16425 isolate->Dispose(); |
16425 } | 16426 } |
16426 | 16427 |
16427 class InitDefaultIsolateThread : public v8::internal::Thread { | 16428 class InitDefaultIsolateThread : public v8::internal::Thread { |
16428 public: | 16429 public: |
16429 enum TestCase { | 16430 enum TestCase { |
16430 IgnoreOOM, | 16431 IgnoreOOM, |
16431 SetResourceConstraints, | 16432 SetResourceConstraints, |
16432 SetFatalHandler, | 16433 SetFatalHandler, |
16433 SetCounterFunction, | 16434 SetCounterFunction, |
16434 SetCreateHistogramFunction, | 16435 SetCreateHistogramFunction, |
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18215 i::Semaphore* sem_; | 18216 i::Semaphore* sem_; |
18216 volatile int sem_value_; | 18217 volatile int sem_value_; |
18217 }; | 18218 }; |
18218 | 18219 |
18219 | 18220 |
18220 THREADED_TEST(SemaphoreInterruption) { | 18221 THREADED_TEST(SemaphoreInterruption) { |
18221 ThreadInterruptTest().RunTest(); | 18222 ThreadInterruptTest().RunTest(); |
18222 } | 18223 } |
18223 | 18224 |
18224 #endif // WIN32 | 18225 #endif // WIN32 |
OLD | NEW |