| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug.h" | 10 #include "src/debug.h" |
| (...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 __ bind(&loop); | 1432 __ bind(&loop); |
| 1433 __ LoadP(receiver, MemOperand(fp, argumentsOffset)); | 1433 __ LoadP(receiver, MemOperand(fp, argumentsOffset)); |
| 1434 | 1434 |
| 1435 // Use inline caching to speed up access to arguments. | 1435 // Use inline caching to speed up access to arguments. |
| 1436 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1436 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
| 1437 Handle<TypeFeedbackVector> feedback_vector = | 1437 Handle<TypeFeedbackVector> feedback_vector = |
| 1438 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1438 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
| 1439 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1439 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
| 1440 __ LoadSmiLiteral(slot, Smi::FromInt(index)); | 1440 __ LoadSmiLiteral(slot, Smi::FromInt(index)); |
| 1441 __ Move(vector, feedback_vector); | 1441 __ Move(vector, feedback_vector); |
| 1442 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1442 Handle<Code> ic = |
| 1443 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
| 1443 __ Call(ic, RelocInfo::CODE_TARGET); | 1444 __ Call(ic, RelocInfo::CODE_TARGET); |
| 1444 | 1445 |
| 1445 // Push the nth argument. | 1446 // Push the nth argument. |
| 1446 __ push(r3); | 1447 __ push(r3); |
| 1447 | 1448 |
| 1448 // Update the index on the stack and in register key. | 1449 // Update the index on the stack and in register key. |
| 1449 __ LoadP(key, MemOperand(fp, indexOffset)); | 1450 __ LoadP(key, MemOperand(fp, indexOffset)); |
| 1450 __ AddSmiLiteral(key, key, Smi::FromInt(1), r0); | 1451 __ AddSmiLiteral(key, key, Smi::FromInt(1), r0); |
| 1451 __ StoreP(key, MemOperand(fp, indexOffset)); | 1452 __ StoreP(key, MemOperand(fp, indexOffset)); |
| 1452 | 1453 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 __ bkpt(0); | 1876 __ bkpt(0); |
| 1876 } | 1877 } |
| 1877 } | 1878 } |
| 1878 | 1879 |
| 1879 | 1880 |
| 1880 #undef __ | 1881 #undef __ |
| 1881 } // namespace internal | 1882 } // namespace internal |
| 1882 } // namespace v8 | 1883 } // namespace v8 |
| 1883 | 1884 |
| 1884 #endif // V8_TARGET_ARCH_PPC | 1885 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |