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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1786 | 1786 |
1787 Handle<FixedArray> constant_elements = expr->constant_elements(); | 1787 Handle<FixedArray> constant_elements = expr->constant_elements(); |
1788 ASSERT_EQ(2, constant_elements->length()); | 1788 ASSERT_EQ(2, constant_elements->length()); |
1789 ElementsKind constant_elements_kind = | 1789 ElementsKind constant_elements_kind = |
1790 static_cast<ElementsKind>(Smi::cast(constant_elements->get(0))->value()); | 1790 static_cast<ElementsKind>(Smi::cast(constant_elements->get(0))->value()); |
1791 bool has_fast_elements = | 1791 bool has_fast_elements = |
1792 IsFastObjectElementsKind(constant_elements_kind); | 1792 IsFastObjectElementsKind(constant_elements_kind); |
1793 Handle<FixedArrayBase> constant_elements_values( | 1793 Handle<FixedArrayBase> constant_elements_values( |
1794 FixedArrayBase::cast(constant_elements->get(1))); | 1794 FixedArrayBase::cast(constant_elements->get(1))); |
1795 | 1795 |
1796 AllocationSiteMode allocation_site_mode = FLAG_track_allocation_sites | 1796 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; |
1797 ? TRACK_ALLOCATION_SITE : DONT_TRACK_ALLOCATION_SITE; | |
1798 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { | 1797 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { |
1799 // If the only customer of allocation sites is transitioning, then | 1798 // If the only customer of allocation sites is transitioning, then |
1800 // we can turn it off if we don't have anywhere else to transition to. | 1799 // we can turn it off if we don't have anywhere else to transition to. |
1801 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; | 1800 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; |
1802 } | 1801 } |
1803 | 1802 |
1804 __ mov(a0, result_register()); | 1803 __ mov(a0, result_register()); |
1805 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1804 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1806 __ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); | 1805 __ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); |
1807 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1806 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
(...skipping 3161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4969 Assembler::target_address_at(pc_immediate_load_address)) == | 4968 Assembler::target_address_at(pc_immediate_load_address)) == |
4970 reinterpret_cast<uint32_t>( | 4969 reinterpret_cast<uint32_t>( |
4971 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4970 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4972 return OSR_AFTER_STACK_CHECK; | 4971 return OSR_AFTER_STACK_CHECK; |
4973 } | 4972 } |
4974 | 4973 |
4975 | 4974 |
4976 } } // namespace v8::internal | 4975 } } // namespace v8::internal |
4977 | 4976 |
4978 #endif // V8_TARGET_ARCH_MIPS | 4977 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |