| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 3731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3742 // Is it a fixed array? | 3742 // Is it a fixed array? |
| 3743 __ bind(&try_array); | 3743 __ bind(&try_array); |
| 3744 __ CompareRoot(FieldOperand(feedback, 0), Heap::kFixedArrayMapRootIndex); | 3744 __ CompareRoot(FieldOperand(feedback, 0), Heap::kFixedArrayMapRootIndex); |
| 3745 __ j(not_equal, ¬_array); | 3745 __ j(not_equal, ¬_array); |
| 3746 HandleArrayCases(masm, feedback, receiver_map, integer_slot, r11, r15, true, | 3746 HandleArrayCases(masm, feedback, receiver_map, integer_slot, r11, r15, true, |
| 3747 &miss); | 3747 &miss); |
| 3748 | 3748 |
| 3749 __ bind(¬_array); | 3749 __ bind(¬_array); |
| 3750 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3750 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
| 3751 __ j(not_equal, &miss); | 3751 __ j(not_equal, &miss); |
| 3752 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3752 Code::Flags code_flags = |
| 3753 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3753 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); |
| 3754 masm->isolate()->stub_cache()->GenerateProbe( | 3754 masm->isolate()->stub_cache()->GenerateProbe( |
| 3755 masm, Code::LOAD_IC, code_flags, receiver, name, feedback, no_reg); | 3755 masm, Code::LOAD_IC, code_flags, receiver, name, feedback, no_reg); |
| 3756 | 3756 |
| 3757 __ bind(&miss); | 3757 __ bind(&miss); |
| 3758 LoadIC::GenerateMiss(masm); | 3758 LoadIC::GenerateMiss(masm); |
| 3759 | 3759 |
| 3760 __ bind(&load_smi_map); | 3760 __ bind(&load_smi_map); |
| 3761 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3761 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3762 __ jmp(&compare_map); | 3762 __ jmp(&compare_map); |
| 3763 } | 3763 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3884 __ bind(&try_array); | 3884 __ bind(&try_array); |
| 3885 __ CompareRoot(FieldOperand(feedback, 0), Heap::kFixedArrayMapRootIndex); | 3885 __ CompareRoot(FieldOperand(feedback, 0), Heap::kFixedArrayMapRootIndex); |
| 3886 __ j(not_equal, ¬_array); | 3886 __ j(not_equal, ¬_array); |
| 3887 HandleArrayCases(masm, feedback, receiver_map, integer_slot, r14, r15, true, | 3887 HandleArrayCases(masm, feedback, receiver_map, integer_slot, r14, r15, true, |
| 3888 &miss); | 3888 &miss); |
| 3889 | 3889 |
| 3890 __ bind(¬_array); | 3890 __ bind(¬_array); |
| 3891 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3891 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
| 3892 __ j(not_equal, &miss); | 3892 __ j(not_equal, &miss); |
| 3893 | 3893 |
| 3894 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3894 Code::Flags code_flags = |
| 3895 Code::ComputeHandlerFlags(Code::STORE_IC)); | 3895 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
| 3896 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, | 3896 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, |
| 3897 receiver, key, feedback, no_reg); | 3897 receiver, key, feedback, no_reg); |
| 3898 | 3898 |
| 3899 __ bind(&miss); | 3899 __ bind(&miss); |
| 3900 StoreIC::GenerateMiss(masm); | 3900 StoreIC::GenerateMiss(masm); |
| 3901 | 3901 |
| 3902 __ bind(&load_smi_map); | 3902 __ bind(&load_smi_map); |
| 3903 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3903 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 3904 __ jmp(&compare_map); | 3904 __ jmp(&compare_map); |
| 3905 } | 3905 } |
| (...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5564 NULL); | 5564 NULL); |
| 5565 } | 5565 } |
| 5566 | 5566 |
| 5567 | 5567 |
| 5568 #undef __ | 5568 #undef __ |
| 5569 | 5569 |
| 5570 } // namespace internal | 5570 } // namespace internal |
| 5571 } // namespace v8 | 5571 } // namespace v8 |
| 5572 | 5572 |
| 5573 #endif // V8_TARGET_ARCH_X64 | 5573 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |