| 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 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1838       return generic_stub(); |  1838       return generic_stub(); | 
|  1839     } |  1839     } | 
|  1840   } |  1840   } | 
|  1841  |  1841  | 
|  1842   // If the store mode isn't the standard mode, make sure that all polymorphic |  1842   // If the store mode isn't the standard mode, make sure that all polymorphic | 
|  1843   // receivers are either external arrays, or all "normal" arrays. Otherwise, |  1843   // receivers are either external arrays, or all "normal" arrays. Otherwise, | 
|  1844   // use the generic stub. |  1844   // use the generic stub. | 
|  1845   if (store_mode != STANDARD_STORE) { |  1845   if (store_mode != STANDARD_STORE) { | 
|  1846     int external_arrays = 0; |  1846     int external_arrays = 0; | 
|  1847     for (int i = 0; i < target_receiver_maps.length(); ++i) { |  1847     for (int i = 0; i < target_receiver_maps.length(); ++i) { | 
|  1848       if (target_receiver_maps[i]->has_external_array_elements()) { |  1848       if (target_receiver_maps[i]->has_external_array_elements() || | 
 |  1849           target_receiver_maps[i]->has_fixed_typed_array_elements()) { | 
|  1849         external_arrays++; |  1850         external_arrays++; | 
|  1850       } |  1851       } | 
|  1851     } |  1852     } | 
|  1852     if (external_arrays != 0 && |  1853     if (external_arrays != 0 && | 
|  1853         external_arrays != target_receiver_maps.length()) { |  1854         external_arrays != target_receiver_maps.length()) { | 
|  1854       TRACE_GENERIC_IC(isolate(), "KeyedIC", |  1855       TRACE_GENERIC_IC(isolate(), "KeyedIC", | 
|  1855           "unsupported combination of external and normal arrays"); |  1856           "unsupported combination of external and normal arrays"); | 
|  1856       return generic_stub(); |  1857       return generic_stub(); | 
|  1857     } |  1858     } | 
|  1858   } |  1859   } | 
| (...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3220 #undef ADDR |  3221 #undef ADDR | 
|  3221 }; |  3222 }; | 
|  3222  |  3223  | 
|  3223  |  3224  | 
|  3224 Address IC::AddressFromUtilityId(IC::UtilityId id) { |  3225 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 
|  3225   return IC_utilities[id]; |  3226   return IC_utilities[id]; | 
|  3226 } |  3227 } | 
|  3227  |  3228  | 
|  3228  |  3229  | 
|  3229 } }  // namespace v8::internal |  3230 } }  // namespace v8::internal | 
| OLD | NEW |