| 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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1990 // Tracking to do a better job of ensuring the data types are what they need | 1990 // Tracking to do a better job of ensuring the data types are what they need |
| 1991 // to be. Not all the elements are in place yet, pessimistic elements | 1991 // to be. Not all the elements are in place yet, pessimistic elements |
| 1992 // transitions are still important for performance. | 1992 // transitions are still important for performance. |
| 1993 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; | 1993 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; |
| 1994 ElementsKind elements_kind = receiver_map->elements_kind(); | 1994 ElementsKind elements_kind = receiver_map->elements_kind(); |
| 1995 if (!transitioned_map.is_null()) { | 1995 if (!transitioned_map.is_null()) { |
| 1996 cached_stub = ElementsTransitionAndStoreStub( | 1996 cached_stub = ElementsTransitionAndStoreStub( |
| 1997 elements_kind, | 1997 elements_kind, |
| 1998 transitioned_map->elements_kind(), | 1998 transitioned_map->elements_kind(), |
| 1999 is_js_array, | 1999 is_js_array, |
| 2000 strict_mode(), | |
| 2001 store_mode_).GetCode(isolate()); | 2000 store_mode_).GetCode(isolate()); |
| 2002 } else { | 2001 } else { |
| 2003 if (FLAG_compiled_keyed_stores && | 2002 if (FLAG_compiled_keyed_stores && |
| 2004 (receiver_map->has_fast_elements() || | 2003 (receiver_map->has_fast_elements() || |
| 2005 receiver_map->has_external_array_elements())) { | 2004 receiver_map->has_external_array_elements())) { |
| 2006 cached_stub = KeyedStoreFastElementStub( | 2005 cached_stub = KeyedStoreFastElementStub( |
| 2007 is_js_array, | 2006 is_js_array, |
| 2008 elements_kind, | 2007 elements_kind, |
| 2009 store_mode_).GetCode(isolate()); | 2008 store_mode_).GetCode(isolate()); |
| 2010 } else { | 2009 } else { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 Handle<FunctionTemplateInfo>( | 2192 Handle<FunctionTemplateInfo>( |
| 2194 FunctionTemplateInfo::cast(signature->receiver())); | 2193 FunctionTemplateInfo::cast(signature->receiver())); |
| 2195 } | 2194 } |
| 2196 } | 2195 } |
| 2197 | 2196 |
| 2198 is_simple_api_call_ = true; | 2197 is_simple_api_call_ = true; |
| 2199 } | 2198 } |
| 2200 | 2199 |
| 2201 | 2200 |
| 2202 } } // namespace v8::internal | 2201 } } // namespace v8::internal |
| OLD | NEW |