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