| 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 | 5 |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1412 __ bind(&loop); | 1412 __ bind(&loop); |
| 1413 __ ld(receiver, MemOperand(fp, argumentsOffset)); | 1413 __ ld(receiver, MemOperand(fp, argumentsOffset)); |
| 1414 | 1414 |
| 1415 // Use inline caching to speed up access to arguments. | 1415 // Use inline caching to speed up access to arguments. |
| 1416 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1416 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
| 1417 Handle<TypeFeedbackVector> feedback_vector = | 1417 Handle<TypeFeedbackVector> feedback_vector = |
| 1418 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1418 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
| 1419 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1419 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
| 1420 __ li(slot, Operand(Smi::FromInt(index))); | 1420 __ li(slot, Operand(Smi::FromInt(index))); |
| 1421 __ li(vector, feedback_vector); | 1421 __ li(vector, feedback_vector); |
| 1422 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1422 Handle<Code> ic = |
| 1423 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
| 1423 __ Call(ic, RelocInfo::CODE_TARGET); | 1424 __ Call(ic, RelocInfo::CODE_TARGET); |
| 1424 | 1425 |
| 1425 __ push(v0); | 1426 __ push(v0); |
| 1426 | 1427 |
| 1427 // Use inline caching to access the arguments. | 1428 // Use inline caching to access the arguments. |
| 1428 __ ld(key, MemOperand(fp, indexOffset)); | 1429 __ ld(key, MemOperand(fp, indexOffset)); |
| 1429 __ Daddu(key, key, Operand(Smi::FromInt(1))); | 1430 __ Daddu(key, key, Operand(Smi::FromInt(1))); |
| 1430 __ sd(key, MemOperand(fp, indexOffset)); | 1431 __ sd(key, MemOperand(fp, indexOffset)); |
| 1431 | 1432 |
| 1432 // Test if the copy loop has finished copying all the elements from the | 1433 // Test if the copy loop has finished copying all the elements from the |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1843 } | 1844 } |
| 1844 } | 1845 } |
| 1845 | 1846 |
| 1846 | 1847 |
| 1847 #undef __ | 1848 #undef __ |
| 1848 | 1849 |
| 1849 } // namespace internal | 1850 } // namespace internal |
| 1850 } // namespace v8 | 1851 } // namespace v8 |
| 1851 | 1852 |
| 1852 #endif // V8_TARGET_ARCH_MIPS64 | 1853 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |