| 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 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2850 SetSourcePosition(expr->position()); | 2850 SetSourcePosition(expr->position()); |
| 2851 | 2851 |
| 2852 // Load function and argument count into edi and eax. | 2852 // Load function and argument count into edi and eax. |
| 2853 __ Set(eax, Immediate(arg_count)); | 2853 __ Set(eax, Immediate(arg_count)); |
| 2854 __ mov(edi, Operand(esp, arg_count * kPointerSize)); | 2854 __ mov(edi, Operand(esp, arg_count * kPointerSize)); |
| 2855 | 2855 |
| 2856 // Record call targets in unoptimized code. | 2856 // Record call targets in unoptimized code. |
| 2857 Handle<Object> uninitialized = | 2857 Handle<Object> uninitialized = |
| 2858 TypeFeedbackInfo::UninitializedSentinel(isolate()); | 2858 TypeFeedbackInfo::UninitializedSentinel(isolate()); |
| 2859 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); | 2859 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); |
| 2860 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(), |
| 2861 isolate()->factory()->NewAllocationSite()); |
| 2862 ASSERT(expr->AllocationSiteFeedbackSlot() == |
| 2863 expr->CallNewFeedbackSlot() + 1); |
| 2864 |
| 2860 __ LoadHeapObject(ebx, FeedbackVector()); | 2865 __ LoadHeapObject(ebx, FeedbackVector()); |
| 2861 __ mov(edx, Immediate(Smi::FromInt(expr->CallNewFeedbackSlot()))); | 2866 __ mov(edx, Immediate(Smi::FromInt(expr->CallNewFeedbackSlot()))); |
| 2862 | 2867 |
| 2863 CallConstructStub stub(RECORD_CALL_TARGET); | 2868 CallConstructStub stub(RECORD_CALL_TARGET); |
| 2864 __ call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); | 2869 __ call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); |
| 2865 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 2870 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
| 2866 context()->Plug(eax); | 2871 context()->Plug(eax); |
| 2867 } | 2872 } |
| 2868 | 2873 |
| 2869 | 2874 |
| (...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4919 | 4924 |
| 4920 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4925 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4921 Assembler::target_address_at(call_target_address)); | 4926 Assembler::target_address_at(call_target_address)); |
| 4922 return OSR_AFTER_STACK_CHECK; | 4927 return OSR_AFTER_STACK_CHECK; |
| 4923 } | 4928 } |
| 4924 | 4929 |
| 4925 | 4930 |
| 4926 } } // namespace v8::internal | 4931 } } // namespace v8::internal |
| 4927 | 4932 |
| 4928 #endif // V8_TARGET_ARCH_IA32 | 4933 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |