| 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 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 // The generated code should filter out non-Smis before we get here. | 1826 // The generated code should filter out non-Smis before we get here. |
| 1827 ASSERT(len->IsSmi()); | 1827 ASSERT(len->IsSmi()); |
| 1828 | 1828 |
| 1829 #ifdef DEBUG | 1829 #ifdef DEBUG |
| 1830 // The length property has to be a writable callback property. | 1830 // The length property has to be a writable callback property. |
| 1831 LookupResult debug_lookup(isolate); | 1831 LookupResult debug_lookup(isolate); |
| 1832 receiver->LocalLookup(isolate->heap()->length_string(), &debug_lookup); | 1832 receiver->LocalLookup(isolate->heap()->length_string(), &debug_lookup); |
| 1833 ASSERT(debug_lookup.IsPropertyCallbacks() && !debug_lookup.IsReadOnly()); | 1833 ASSERT(debug_lookup.IsPropertyCallbacks() && !debug_lookup.IsReadOnly()); |
| 1834 #endif | 1834 #endif |
| 1835 | 1835 |
| 1836 RETURN_IF_EMPTY_HANDLE(isolate, | 1836 RETURN_FAILURE_ON_EXCEPTION( |
| 1837 JSArray::SetElementsLength(receiver, len)); | 1837 isolate, JSArray::SetElementsLength(receiver, len)); |
| 1838 return *len; | 1838 return *len; |
| 1839 } | 1839 } |
| 1840 | 1840 |
| 1841 | 1841 |
| 1842 // Extend storage is called in a store inline cache when | 1842 // Extend storage is called in a store inline cache when |
| 1843 // it is necessary to extend the properties array of a | 1843 // it is necessary to extend the properties array of a |
| 1844 // JSObject. | 1844 // JSObject. |
| 1845 RUNTIME_FUNCTION(MaybeObject*, SharedStoreIC_ExtendStorage) { | 1845 RUNTIME_FUNCTION(MaybeObject*, SharedStoreIC_ExtendStorage) { |
| 1846 SealHandleScope shs(isolate); | 1846 SealHandleScope shs(isolate); |
| 1847 ASSERT(args.length() == 3); | 1847 ASSERT(args.length() == 3); |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2839 #undef ADDR | 2839 #undef ADDR |
| 2840 }; | 2840 }; |
| 2841 | 2841 |
| 2842 | 2842 |
| 2843 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2843 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2844 return IC_utilities[id]; | 2844 return IC_utilities[id]; |
| 2845 } | 2845 } |
| 2846 | 2846 |
| 2847 | 2847 |
| 2848 } } // namespace v8::internal | 2848 } } // namespace v8::internal |
| OLD | NEW |