| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 __ bind(&loop); | 1426 __ bind(&loop); |
| 1427 __ lw(receiver, MemOperand(fp, argumentsOffset)); | 1427 __ lw(receiver, MemOperand(fp, argumentsOffset)); |
| 1428 | 1428 |
| 1429 // Use inline caching to speed up access to arguments. | 1429 // Use inline caching to speed up access to arguments. |
| 1430 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1430 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
| 1431 Handle<TypeFeedbackVector> feedback_vector = | 1431 Handle<TypeFeedbackVector> feedback_vector = |
| 1432 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1432 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
| 1433 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1433 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
| 1434 __ li(slot, Operand(Smi::FromInt(index))); | 1434 __ li(slot, Operand(Smi::FromInt(index))); |
| 1435 __ li(vector, feedback_vector); | 1435 __ li(vector, feedback_vector); |
| 1436 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1436 Handle<Code> ic = |
| 1437 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
| 1437 __ Call(ic, RelocInfo::CODE_TARGET); | 1438 __ Call(ic, RelocInfo::CODE_TARGET); |
| 1438 | 1439 |
| 1439 __ push(v0); | 1440 __ push(v0); |
| 1440 | 1441 |
| 1441 // Use inline caching to access the arguments. | 1442 // Use inline caching to access the arguments. |
| 1442 __ lw(key, MemOperand(fp, indexOffset)); | 1443 __ lw(key, MemOperand(fp, indexOffset)); |
| 1443 __ Addu(key, key, Operand(1 << kSmiTagSize)); | 1444 __ Addu(key, key, Operand(1 << kSmiTagSize)); |
| 1444 __ sw(key, MemOperand(fp, indexOffset)); | 1445 __ sw(key, MemOperand(fp, indexOffset)); |
| 1445 | 1446 |
| 1446 // Test if the copy loop has finished copying all the elements from the | 1447 // Test if the copy loop has finished copying all the elements from the |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 } | 1856 } |
| 1856 } | 1857 } |
| 1857 | 1858 |
| 1858 | 1859 |
| 1859 #undef __ | 1860 #undef __ |
| 1860 | 1861 |
| 1861 } // namespace internal | 1862 } // namespace internal |
| 1862 } // namespace v8 | 1863 } // namespace v8 |
| 1863 | 1864 |
| 1864 #endif // V8_TARGET_ARCH_MIPS | 1865 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |