| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4048 // Is it a fixed array? | 4048 // Is it a fixed array? |
| 4049 __ bind(&try_array); | 4049 __ bind(&try_array); |
| 4050 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 4050 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
| 4051 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 4051 __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
| 4052 __ Branch(¬_array, ne, scratch1, Operand(at)); | 4052 __ Branch(¬_array, ne, scratch1, Operand(at)); |
| 4053 HandleArrayCases(masm, feedback, receiver_map, scratch1, a7, true, &miss); | 4053 HandleArrayCases(masm, feedback, receiver_map, scratch1, a7, true, &miss); |
| 4054 | 4054 |
| 4055 __ bind(¬_array); | 4055 __ bind(¬_array); |
| 4056 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 4056 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
| 4057 __ Branch(&miss, ne, feedback, Operand(at)); | 4057 __ Branch(&miss, ne, feedback, Operand(at)); |
| 4058 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 4058 Code::Flags code_flags = |
| 4059 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 4059 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); |
| 4060 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | 4060 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |
| 4061 receiver, name, feedback, | 4061 receiver, name, feedback, |
| 4062 receiver_map, scratch1, a7); | 4062 receiver_map, scratch1, a7); |
| 4063 | 4063 |
| 4064 __ bind(&miss); | 4064 __ bind(&miss); |
| 4065 LoadIC::GenerateMiss(masm); | 4065 LoadIC::GenerateMiss(masm); |
| 4066 | 4066 |
| 4067 __ bind(&load_smi_map); | 4067 __ bind(&load_smi_map); |
| 4068 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 4068 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
| 4069 __ Branch(&compare_map); | 4069 __ Branch(&compare_map); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4191 __ bind(&try_array); | 4191 __ bind(&try_array); |
| 4192 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 4192 __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
| 4193 __ Branch(¬_array, ne, scratch1, Heap::kFixedArrayMapRootIndex); | 4193 __ Branch(¬_array, ne, scratch1, Heap::kFixedArrayMapRootIndex); |
| 4194 | 4194 |
| 4195 Register scratch2 = t0; | 4195 Register scratch2 = t0; |
| 4196 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 4196 HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
| 4197 &miss); | 4197 &miss); |
| 4198 | 4198 |
| 4199 __ bind(¬_array); | 4199 __ bind(¬_array); |
| 4200 __ Branch(&miss, ne, feedback, Heap::kmegamorphic_symbolRootIndex); | 4200 __ Branch(&miss, ne, feedback, Heap::kmegamorphic_symbolRootIndex); |
| 4201 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 4201 Code::Flags code_flags = |
| 4202 Code::ComputeHandlerFlags(Code::STORE_IC)); | 4202 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
| 4203 masm->isolate()->stub_cache()->GenerateProbe( | 4203 masm->isolate()->stub_cache()->GenerateProbe( |
| 4204 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, | 4204 masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, |
| 4205 scratch1, scratch2); | 4205 scratch1, scratch2); |
| 4206 | 4206 |
| 4207 __ bind(&miss); | 4207 __ bind(&miss); |
| 4208 StoreIC::GenerateMiss(masm); | 4208 StoreIC::GenerateMiss(masm); |
| 4209 | 4209 |
| 4210 __ bind(&load_smi_map); | 4210 __ bind(&load_smi_map); |
| 4211 __ Branch(USE_DELAY_SLOT, &compare_map); | 4211 __ Branch(USE_DELAY_SLOT, &compare_map); |
| 4212 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. | 4212 __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. |
| (...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5755 return_value_operand, NULL); | 5755 return_value_operand, NULL); |
| 5756 } | 5756 } |
| 5757 | 5757 |
| 5758 | 5758 |
| 5759 #undef __ | 5759 #undef __ |
| 5760 | 5760 |
| 5761 } // namespace internal | 5761 } // namespace internal |
| 5762 } // namespace v8 | 5762 } // namespace v8 |
| 5763 | 5763 |
| 5764 #endif // V8_TARGET_ARCH_MIPS64 | 5764 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |