OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3350 matching lines...) Loading... |
3361 ExternalReference ref = | 3361 ExternalReference ref = |
3362 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); | 3362 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); |
3363 __ TailCallExternalReference(ref, 2, 1); | 3363 __ TailCallExternalReference(ref, 2, 1); |
3364 | 3364 |
3365 __ bind(&miss); | 3365 __ bind(&miss); |
3366 | 3366 |
3367 StubCompiler::GenerateStoreMiss(masm, kind()); | 3367 StubCompiler::GenerateStoreMiss(masm, kind()); |
3368 } | 3368 } |
3369 | 3369 |
3370 | 3370 |
| 3371 void LoadFieldStub::Generate(MacroAssembler* masm) { |
| 3372 StubCompiler::DoGenerateFastPropertyLoad(masm, eax, reg_, inobject_, index_); |
| 3373 __ ret(0); |
| 3374 } |
| 3375 |
| 3376 |
3371 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { | 3377 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
3372 // The key is in edx and the parameter count is in eax. | 3378 // The key is in edx and the parameter count is in eax. |
3373 | 3379 |
3374 // The displacement is used for skipping the frame pointer on the | 3380 // The displacement is used for skipping the frame pointer on the |
3375 // stack. It is the offset of the last parameter (if any) relative | 3381 // stack. It is the offset of the last parameter (if any) relative |
3376 // to the frame pointer. | 3382 // to the frame pointer. |
3377 static const int kDisplacement = 1 * kPointerSize; | 3383 static const int kDisplacement = 1 * kPointerSize; |
3378 | 3384 |
3379 // Check that the key is a smi. | 3385 // Check that the key is a smi. |
3380 Label slow; | 3386 Label slow; |
(...skipping 4300 matching lines...) Loading... |
7681 // Restore ecx. | 7687 // Restore ecx. |
7682 __ pop(ecx); | 7688 __ pop(ecx); |
7683 __ ret(0); | 7689 __ ret(0); |
7684 } | 7690 } |
7685 | 7691 |
7686 #undef __ | 7692 #undef __ |
7687 | 7693 |
7688 } } // namespace v8::internal | 7694 } } // namespace v8::internal |
7689 | 7695 |
7690 #endif // V8_TARGET_ARCH_IA32 | 7696 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |