| 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 3709 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3720   // Is it a fixed array? | 3720   // Is it a fixed array? | 
| 3721   __ bind(&try_array); | 3721   __ bind(&try_array); | 
| 3722   __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3722   __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 
| 3723   __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 3723   __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); | 
| 3724   __ Branch(¬_array, ne, scratch1, Operand(at)); | 3724   __ Branch(¬_array, ne, scratch1, Operand(at)); | 
| 3725   HandleArrayCases(masm, feedback, receiver_map, scratch1, a7, true, &miss); | 3725   HandleArrayCases(masm, feedback, receiver_map, scratch1, a7, true, &miss); | 
| 3726 | 3726 | 
| 3727   __ bind(¬_array); | 3727   __ bind(¬_array); | 
| 3728   __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 3728   __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); | 
| 3729   __ Branch(&miss, ne, feedback, Operand(at)); | 3729   __ Branch(&miss, ne, feedback, Operand(at)); | 
| 3730   Code::Flags code_flags = | 3730   masm->isolate()->load_stub_cache()->GenerateProbe( | 
| 3731       Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3731       masm, receiver, name, feedback, receiver_map, scratch1, a7); | 
| 3732   masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |  | 
| 3733                                                receiver, name, feedback, |  | 
| 3734                                                receiver_map, scratch1, a7); |  | 
| 3735 | 3732 | 
| 3736   __ bind(&miss); | 3733   __ bind(&miss); | 
| 3737   LoadIC::GenerateMiss(masm); | 3734   LoadIC::GenerateMiss(masm); | 
| 3738 | 3735 | 
| 3739   __ bind(&load_smi_map); | 3736   __ bind(&load_smi_map); | 
| 3740   __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 3737   __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); | 
| 3741   __ Branch(&compare_map); | 3738   __ Branch(&compare_map); | 
| 3742 } | 3739 } | 
| 3743 | 3740 | 
| 3744 | 3741 | 
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3863   __ bind(&try_array); | 3860   __ bind(&try_array); | 
| 3864   __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 3861   __ ld(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); | 
| 3865   __ Branch(¬_array, ne, scratch1, Heap::kFixedArrayMapRootIndex); | 3862   __ Branch(¬_array, ne, scratch1, Heap::kFixedArrayMapRootIndex); | 
| 3866 | 3863 | 
| 3867   Register scratch2 = t0; | 3864   Register scratch2 = t0; | 
| 3868   HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 3865   HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, | 
| 3869                    &miss); | 3866                    &miss); | 
| 3870 | 3867 | 
| 3871   __ bind(¬_array); | 3868   __ bind(¬_array); | 
| 3872   __ Branch(&miss, ne, feedback, Heap::kmegamorphic_symbolRootIndex); | 3869   __ Branch(&miss, ne, feedback, Heap::kmegamorphic_symbolRootIndex); | 
| 3873   Code::Flags code_flags = | 3870   masm->isolate()->store_stub_cache()->GenerateProbe( | 
| 3874       Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 3871       masm, receiver, key, feedback, receiver_map, scratch1, scratch2); | 
| 3875   masm->isolate()->stub_cache()->GenerateProbe( |  | 
| 3876       masm, Code::STORE_IC, code_flags, receiver, key, feedback, receiver_map, |  | 
| 3877       scratch1, scratch2); |  | 
| 3878 | 3872 | 
| 3879   __ bind(&miss); | 3873   __ bind(&miss); | 
| 3880   StoreIC::GenerateMiss(masm); | 3874   StoreIC::GenerateMiss(masm); | 
| 3881 | 3875 | 
| 3882   __ bind(&load_smi_map); | 3876   __ bind(&load_smi_map); | 
| 3883   __ Branch(USE_DELAY_SLOT, &compare_map); | 3877   __ Branch(USE_DELAY_SLOT, &compare_map); | 
| 3884   __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);  // In delay slot. | 3878   __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex);  // In delay slot. | 
| 3885 } | 3879 } | 
| 3886 | 3880 | 
| 3887 | 3881 | 
| (...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5454                            kStackUnwindSpace, kInvalidStackOffset, | 5448                            kStackUnwindSpace, kInvalidStackOffset, | 
| 5455                            return_value_operand, NULL); | 5449                            return_value_operand, NULL); | 
| 5456 } | 5450 } | 
| 5457 | 5451 | 
| 5458 #undef __ | 5452 #undef __ | 
| 5459 | 5453 | 
| 5460 }  // namespace internal | 5454 }  // namespace internal | 
| 5461 }  // namespace v8 | 5455 }  // namespace v8 | 
| 5462 | 5456 | 
| 5463 #endif  // V8_TARGET_ARCH_MIPS64 | 5457 #endif  // V8_TARGET_ARCH_MIPS64 | 
| OLD | NEW | 
|---|