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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 __ bind(&loop); | 1059 __ bind(&loop); |
1060 __ mov(receiver, Operand(ebp, argumentsOffset)); // load arguments | 1060 __ mov(receiver, Operand(ebp, argumentsOffset)); // load arguments |
1061 | 1061 |
1062 // Use inline caching to speed up access to arguments. | 1062 // Use inline caching to speed up access to arguments. |
1063 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 1063 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
1064 Handle<TypeFeedbackVector> feedback_vector = | 1064 Handle<TypeFeedbackVector> feedback_vector = |
1065 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); | 1065 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
1066 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); | 1066 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
1067 __ mov(slot, Immediate(Smi::FromInt(index))); | 1067 __ mov(slot, Immediate(Smi::FromInt(index))); |
1068 __ mov(vector, Immediate(feedback_vector)); | 1068 __ mov(vector, Immediate(feedback_vector)); |
1069 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); | 1069 Handle<Code> ic = |
| 1070 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); |
1070 __ call(ic, RelocInfo::CODE_TARGET); | 1071 __ call(ic, RelocInfo::CODE_TARGET); |
1071 // It is important that we do not have a test instruction after the | 1072 // It is important that we do not have a test instruction after the |
1072 // call. A test instruction after the call is used to indicate that | 1073 // call. A test instruction after the call is used to indicate that |
1073 // we have generated an inline version of the keyed load. In this | 1074 // we have generated an inline version of the keyed load. In this |
1074 // case, we know that we are not generating a test instruction next. | 1075 // case, we know that we are not generating a test instruction next. |
1075 | 1076 |
1076 // Push the nth argument. | 1077 // Push the nth argument. |
1077 __ push(eax); | 1078 __ push(eax); |
1078 | 1079 |
1079 // Update the index on the stack and in register key. | 1080 // Update the index on the stack and in register key. |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 | 1717 |
1717 __ bind(&ok); | 1718 __ bind(&ok); |
1718 __ ret(0); | 1719 __ ret(0); |
1719 } | 1720 } |
1720 | 1721 |
1721 #undef __ | 1722 #undef __ |
1722 } // namespace internal | 1723 } // namespace internal |
1723 } // namespace v8 | 1724 } // namespace v8 |
1724 | 1725 |
1725 #endif // V8_TARGET_ARCH_X87 | 1726 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |