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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 __ bind(&loop); | 1455 __ bind(&loop); |
1456 __ LoadP(receiver, MemOperand(fp, argumentsOffset)); | 1456 __ LoadP(receiver, MemOperand(fp, argumentsOffset)); |
1457 | 1457 |
1458 // Use inline caching to speed up access to arguments. | 1458 // Use inline caching to speed up access to arguments. |
1459 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1459 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
1460 Handle<TypeFeedbackVector> feedback_vector = | 1460 Handle<TypeFeedbackVector> feedback_vector = |
1461 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1461 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
1462 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1462 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
1463 __ LoadSmiLiteral(slot, Smi::FromInt(index)); | 1463 __ LoadSmiLiteral(slot, Smi::FromInt(index)); |
1464 __ Move(vector, feedback_vector); | 1464 __ Move(vector, feedback_vector); |
1465 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1465 Handle<Code> ic = |
| 1466 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
1466 __ Call(ic, RelocInfo::CODE_TARGET); | 1467 __ Call(ic, RelocInfo::CODE_TARGET); |
1467 | 1468 |
1468 // Push the nth argument. | 1469 // Push the nth argument. |
1469 __ push(r3); | 1470 __ push(r3); |
1470 | 1471 |
1471 // Update the index on the stack and in register key. | 1472 // Update the index on the stack and in register key. |
1472 __ LoadP(key, MemOperand(fp, indexOffset)); | 1473 __ LoadP(key, MemOperand(fp, indexOffset)); |
1473 __ AddSmiLiteral(key, key, Smi::FromInt(1), r0); | 1474 __ AddSmiLiteral(key, key, Smi::FromInt(1), r0); |
1474 __ StoreP(key, MemOperand(fp, indexOffset)); | 1475 __ StoreP(key, MemOperand(fp, indexOffset)); |
1475 | 1476 |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1898 __ bkpt(0); | 1899 __ bkpt(0); |
1899 } | 1900 } |
1900 } | 1901 } |
1901 | 1902 |
1902 | 1903 |
1903 #undef __ | 1904 #undef __ |
1904 } // namespace internal | 1905 } // namespace internal |
1905 } // namespace v8 | 1906 } // namespace v8 |
1906 | 1907 |
1907 #endif // V8_TARGET_ARCH_PPC | 1908 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |