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 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 if (has_fast_elements && constant_elements_values->map() == | 1835 if (has_fast_elements && constant_elements_values->map() == |
1836 isolate()->heap()->fixed_cow_array_map()) { | 1836 isolate()->heap()->fixed_cow_array_map()) { |
1837 FastCloneShallowArrayStub stub( | 1837 FastCloneShallowArrayStub stub( |
1838 FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS, | 1838 FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS, |
1839 allocation_site_mode, | 1839 allocation_site_mode, |
1840 length); | 1840 length); |
1841 __ CallStub(&stub); | 1841 __ CallStub(&stub); |
1842 __ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(), | 1842 __ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(), |
1843 1, a1, a2); | 1843 1, a1, a2); |
1844 } else if (expr->depth() > 1 || Serializer::enabled() || | 1844 } else if (expr->depth() > 1 || Serializer::enabled() || |
1845 length > FastCloneShallowArrayStub::kMaximumClonedLength) { | 1845 length > FastCloneShallowArrayStub::kMaximumInlinedCloneLength) { |
1846 __ li(a0, Operand(Smi::FromInt(flags))); | 1846 __ li(a0, Operand(Smi::FromInt(flags))); |
1847 __ Push(a3, a2, a1, a0); | 1847 __ Push(a3, a2, a1, a0); |
1848 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); | 1848 __ CallRuntime(Runtime::kHiddenCreateArrayLiteral, 4); |
1849 } else { | 1849 } else { |
1850 ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) || | 1850 ASSERT(IsFastSmiOrObjectElementsKind(constant_elements_kind) || |
1851 FLAG_smi_only_arrays); | 1851 FLAG_smi_only_arrays); |
1852 FastCloneShallowArrayStub::Mode mode = | 1852 FastCloneShallowArrayStub::Mode mode = |
1853 FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS; | 1853 FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS; |
1854 | 1854 |
1855 if (has_fast_elements) { | 1855 if (has_fast_elements) { |
(...skipping 3106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4962 Assembler::target_address_at(pc_immediate_load_address)) == | 4962 Assembler::target_address_at(pc_immediate_load_address)) == |
4963 reinterpret_cast<uint32_t>( | 4963 reinterpret_cast<uint32_t>( |
4964 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4964 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4965 return OSR_AFTER_STACK_CHECK; | 4965 return OSR_AFTER_STACK_CHECK; |
4966 } | 4966 } |
4967 | 4967 |
4968 | 4968 |
4969 } } // namespace v8::internal | 4969 } } // namespace v8::internal |
4970 | 4970 |
4971 #endif // V8_TARGET_ARCH_MIPS | 4971 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |