| 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 5127 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   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<Object> result = | 
|   5147       Local<Object>::Cast(indexed_property_names_script->Run()); |   5147       Local<Object>::Cast(indexed_property_names_script->Run()); | 
|   5148   return *reinterpret_cast<Local<v8::Array>*>(&result); |   5148   // Have to populate the handle manually, as it's not Cast-able. | 
 |   5149   Local<v8::Array> array_result; | 
 |   5150   Object** ptr = reinterpret_cast<Object**>(&array_result); | 
 |   5151   *ptr = *reinterpret_cast<Object**>(&result); | 
 |   5152   return array_result; | 
|   5149 } |   5153 } | 
|   5150  |   5154  | 
|   5151  |   5155  | 
|   5152 static v8::Handle<Value> NonStrictIndexedPropertyGetter( |   5156 static v8::Handle<Value> NonStrictIndexedPropertyGetter( | 
|   5153     uint32_t index, |   5157     uint32_t index, | 
|   5154     const AccessorInfo& info) { |   5158     const AccessorInfo& info) { | 
|   5155   ApiTestFuzzer::Fuzz(); |   5159   ApiTestFuzzer::Fuzz(); | 
|   5156   if (index < 4) { |   5160   if (index < 4) { | 
|   5157     return v8::Handle<Value>(v8_num(index)); |   5161     return v8::Handle<Value>(v8_num(index)); | 
|   5158   } |   5162   } | 
| (...skipping 14207 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  19366   i::Semaphore* sem_; |  19370   i::Semaphore* sem_; | 
|  19367   volatile int sem_value_; |  19371   volatile int sem_value_; | 
|  19368 }; |  19372 }; | 
|  19369  |  19373  | 
|  19370  |  19374  | 
|  19371 THREADED_TEST(SemaphoreInterruption) { |  19375 THREADED_TEST(SemaphoreInterruption) { | 
|  19372   ThreadInterruptTest().RunTest(); |  19376   ThreadInterruptTest().RunTest(); | 
|  19373 } |  19377 } | 
|  19374  |  19378  | 
|  19375 #endif  // WIN32 |  19379 #endif  // WIN32 | 
| OLD | NEW |