| 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 18239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18250 THREADED_TEST(Regress157124) { | 18250 THREADED_TEST(Regress157124) { |
| 18251 v8::HandleScope scope; | 18251 v8::HandleScope scope; |
| 18252 LocalContext context; | 18252 LocalContext context; |
| 18253 Local<ObjectTemplate> templ = ObjectTemplate::New(); | 18253 Local<ObjectTemplate> templ = ObjectTemplate::New(); |
| 18254 Local<Object> obj = templ->NewInstance(); | 18254 Local<Object> obj = templ->NewInstance(); |
| 18255 obj->GetIdentityHash(); | 18255 obj->GetIdentityHash(); |
| 18256 obj->DeleteHiddenValue(v8_str("Bug")); | 18256 obj->DeleteHiddenValue(v8_str("Bug")); |
| 18257 } | 18257 } |
| 18258 | 18258 |
| 18259 | 18259 |
| 18260 THREADED_TEST(Regress2535) { |
| 18261 i::FLAG_harmony_collections = true; |
| 18262 v8::HandleScope scope; |
| 18263 LocalContext context; |
| 18264 Local<Value> set_value = CompileRun("new Set();"); |
| 18265 Local<Object> set_object(Object::Cast(*set_value)); |
| 18266 CHECK_EQ(0, set_object->InternalFieldCount()); |
| 18267 Local<Value> map_value = CompileRun("new Map();"); |
| 18268 Local<Object> map_object(Object::Cast(*map_value)); |
| 18269 CHECK_EQ(0, map_object->InternalFieldCount()); |
| 18270 } |
| 18271 |
| 18272 |
| 18260 #ifndef WIN32 | 18273 #ifndef WIN32 |
| 18261 class ThreadInterruptTest { | 18274 class ThreadInterruptTest { |
| 18262 public: | 18275 public: |
| 18263 ThreadInterruptTest() : sem_(NULL), sem_value_(0) { } | 18276 ThreadInterruptTest() : sem_(NULL), sem_value_(0) { } |
| 18264 ~ThreadInterruptTest() { delete sem_; } | 18277 ~ThreadInterruptTest() { delete sem_; } |
| 18265 | 18278 |
| 18266 void RunTest() { | 18279 void RunTest() { |
| 18267 sem_ = i::OS::CreateSemaphore(0); | 18280 sem_ = i::OS::CreateSemaphore(0); |
| 18268 | 18281 |
| 18269 InterruptThread i_thread(this); | 18282 InterruptThread i_thread(this); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18313 i::Semaphore* sem_; | 18326 i::Semaphore* sem_; |
| 18314 volatile int sem_value_; | 18327 volatile int sem_value_; |
| 18315 }; | 18328 }; |
| 18316 | 18329 |
| 18317 | 18330 |
| 18318 THREADED_TEST(SemaphoreInterruption) { | 18331 THREADED_TEST(SemaphoreInterruption) { |
| 18319 ThreadInterruptTest().RunTest(); | 18332 ThreadInterruptTest().RunTest(); |
| 18320 } | 18333 } |
| 18321 | 18334 |
| 18322 #endif // WIN32 | 18335 #endif // WIN32 |
| OLD | NEW |