| 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 5125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5136 | 5136 |
| 5137 Handle<v8::Array> NonStrictArgsIndexedPropertyEnumerator( | 5137 Handle<v8::Array> NonStrictArgsIndexedPropertyEnumerator( |
| 5138 const AccessorInfo& info) { | 5138 const AccessorInfo& info) { |
| 5139 // Force the list of returned keys to be stored in a Arguments object. | 5139 // Force the list of returned keys to be stored in a Arguments object. |
| 5140 Local<Script> indexed_property_names_script = Script::Compile(v8_str( | 5140 Local<Script> indexed_property_names_script = Script::Compile(v8_str( |
| 5141 "function f(w,x) {" | 5141 "function f(w,x) {" |
| 5142 " return arguments;" | 5142 " return arguments;" |
| 5143 "}" | 5143 "}" |
| 5144 "keys = f(0, 1, 2, 3);" | 5144 "keys = f(0, 1, 2, 3);" |
| 5145 "keys;")); | 5145 "keys;")); |
| 5146 Local<Object> result = | 5146 Local<v8::Array> result = |
| 5147 Local<Object>::Cast(indexed_property_names_script->Run()); | 5147 Local<v8::Array>::Cast(indexed_property_names_script->Run()); |
| 5148 return *reinterpret_cast<Local<v8::Array>*>(&result); | 5148 return result; |
| 5149 } | 5149 } |
| 5150 | 5150 |
| 5151 | 5151 |
| 5152 static v8::Handle<Value> NonStrictIndexedPropertyGetter( | 5152 static v8::Handle<Value> NonStrictIndexedPropertyGetter( |
| 5153 uint32_t index, | 5153 uint32_t index, |
| 5154 const AccessorInfo& info) { | 5154 const AccessorInfo& info) { |
| 5155 ApiTestFuzzer::Fuzz(); | 5155 ApiTestFuzzer::Fuzz(); |
| 5156 if (index < 4) { | 5156 if (index < 4) { |
| 5157 return v8::Handle<Value>(v8_num(index)); | 5157 return v8::Handle<Value>(v8_num(index)); |
| 5158 } | 5158 } |
| (...skipping 14207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19366 i::Semaphore* sem_; | 19366 i::Semaphore* sem_; |
| 19367 volatile int sem_value_; | 19367 volatile int sem_value_; |
| 19368 }; | 19368 }; |
| 19369 | 19369 |
| 19370 | 19370 |
| 19371 THREADED_TEST(SemaphoreInterruption) { | 19371 THREADED_TEST(SemaphoreInterruption) { |
| 19372 ThreadInterruptTest().RunTest(); | 19372 ThreadInterruptTest().RunTest(); |
| 19373 } | 19373 } |
| 19374 | 19374 |
| 19375 #endif // WIN32 | 19375 #endif // WIN32 |
| OLD | NEW |