OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 3890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3901 // Is it a fixed array? | 3901 // Is it a fixed array? |
3902 __ bind(&try_array); | 3902 __ bind(&try_array); |
3903 __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3903 __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
3904 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); | 3904 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); |
3905 __ bne(¬_array, Label::kNear); | 3905 __ bne(¬_array, Label::kNear); |
3906 HandleArrayCases(masm, feedback, receiver_map, scratch1, r9, true, &miss); | 3906 HandleArrayCases(masm, feedback, receiver_map, scratch1, r9, true, &miss); |
3907 | 3907 |
3908 __ bind(¬_array); | 3908 __ bind(¬_array); |
3909 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 3909 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
3910 __ bne(&miss); | 3910 __ bne(&miss); |
3911 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3911 Code::Flags code_flags = |
3912 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3912 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); |
3913 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | 3913 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |
3914 receiver, name, feedback, | 3914 receiver, name, feedback, |
3915 receiver_map, scratch1, r9); | 3915 receiver_map, scratch1, r9); |
3916 | 3916 |
3917 __ bind(&miss); | 3917 __ bind(&miss); |
3918 LoadIC::GenerateMiss(masm); | 3918 LoadIC::GenerateMiss(masm); |
3919 | 3919 |
3920 __ bind(&load_smi_map); | 3920 __ bind(&load_smi_map); |
3921 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3921 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
3922 __ b(&compare_map); | 3922 __ b(&compare_map); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4036 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); | 4036 __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); |
4037 __ bne(¬_array); | 4037 __ bne(¬_array); |
4038 | 4038 |
4039 Register scratch2 = ip; | 4039 Register scratch2 = ip; |
4040 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 4040 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
4041 &miss); | 4041 &miss); |
4042 | 4042 |
4043 __ bind(¬_array); | 4043 __ bind(¬_array); |
4044 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); | 4044 __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
4045 __ bne(&miss); | 4045 __ bne(&miss); |
4046 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 4046 Code::Flags code_flags = |
4047 Code::ComputeHandlerFlags(Code::STORE_IC)); | 4047 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
4048 masm->isolate()->stub_cache()->GenerateProbe( | 4048 masm->isolate()->stub_cache()->GenerateProbe( |
4049 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, | 4049 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, |
4050 scratch1, scratch2); | 4050 scratch1, scratch2); |
4051 | 4051 |
4052 __ bind(&miss); | 4052 __ bind(&miss); |
4053 StoreIC::GenerateMiss(masm); | 4053 StoreIC::GenerateMiss(masm); |
4054 | 4054 |
4055 __ bind(&load_smi_map); | 4055 __ bind(&load_smi_map); |
4056 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 4056 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
4057 __ b(&compare_map); | 4057 __ b(&compare_map); |
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5697 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5697 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
5698 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5698 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5699 } | 5699 } |
5700 | 5700 |
5701 #undef __ | 5701 #undef __ |
5702 | 5702 |
5703 } // namespace internal | 5703 } // namespace internal |
5704 } // namespace v8 | 5704 } // namespace v8 |
5705 | 5705 |
5706 #endif // V8_TARGET_ARCH_S390 | 5706 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |