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 8358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8369 Local<v8::Object> o4 = t4->GetFunction()->NewInstance(); | 8369 Local<v8::Object> o4 = t4->GetFunction()->NewInstance(); |
8370 | 8370 |
8371 // Create prototype chain of hidden prototypes. | 8371 // Create prototype chain of hidden prototypes. |
8372 CHECK(o4->SetPrototype(o3)); | 8372 CHECK(o4->SetPrototype(o3)); |
8373 CHECK(o3->SetPrototype(o2)); | 8373 CHECK(o3->SetPrototype(o2)); |
8374 CHECK(o2->SetPrototype(o1)); | 8374 CHECK(o2->SetPrototype(o1)); |
8375 | 8375 |
8376 // Call the runtime version of GetLocalPropertyNames() on the natively | 8376 // Call the runtime version of GetLocalPropertyNames() on the natively |
8377 // created object through JavaScript. | 8377 // created object through JavaScript. |
8378 context->Global()->Set(v8_str("obj"), o4); | 8378 context->Global()->Set(v8_str("obj"), o4); |
8379 CompileRun("var names = %GetLocalPropertyNames(obj);"); | 8379 CompileRun("var names = %GetLocalPropertyNames(obj, true);"); |
8380 | 8380 |
8381 ExpectInt32("names.length", 1006); | 8381 ExpectInt32("names.length", 1006); |
8382 ExpectTrue("names.indexOf(\"baz\") >= 0"); | 8382 ExpectTrue("names.indexOf(\"baz\") >= 0"); |
8383 ExpectTrue("names.indexOf(\"boo\") >= 0"); | 8383 ExpectTrue("names.indexOf(\"boo\") >= 0"); |
8384 ExpectTrue("names.indexOf(\"foo\") >= 0"); | 8384 ExpectTrue("names.indexOf(\"foo\") >= 0"); |
8385 ExpectTrue("names.indexOf(\"fuz1\") >= 0"); | 8385 ExpectTrue("names.indexOf(\"fuz1\") >= 0"); |
8386 ExpectTrue("names.indexOf(\"fuz2\") >= 0"); | 8386 ExpectTrue("names.indexOf(\"fuz2\") >= 0"); |
8387 ExpectFalse("names[1005] == undefined"); | 8387 ExpectFalse("names[1005] == undefined"); |
8388 } | 8388 } |
8389 | 8389 |
(...skipping 9929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18319 i::Semaphore* sem_; | 18319 i::Semaphore* sem_; |
18320 volatile int sem_value_; | 18320 volatile int sem_value_; |
18321 }; | 18321 }; |
18322 | 18322 |
18323 | 18323 |
18324 THREADED_TEST(SemaphoreInterruption) { | 18324 THREADED_TEST(SemaphoreInterruption) { |
18325 ThreadInterruptTest().RunTest(); | 18325 ThreadInterruptTest().RunTest(); |
18326 } | 18326 } |
18327 | 18327 |
18328 #endif // WIN32 | 18328 #endif // WIN32 |
OLD | NEW |