Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 203463013: MIPS: Pretenure call new support. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2898 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 SetSourcePosition(expr->position()); 2909 SetSourcePosition(expr->position());
2910 2910
2911 // Load function and argument count into a1 and a0. 2911 // Load function and argument count into a1 and a0.
2912 __ li(a0, Operand(arg_count)); 2912 __ li(a0, Operand(arg_count));
2913 __ lw(a1, MemOperand(sp, arg_count * kPointerSize)); 2913 __ lw(a1, MemOperand(sp, arg_count * kPointerSize));
2914 2914
2915 // Record call targets in unoptimized code. 2915 // Record call targets in unoptimized code.
2916 Handle<Object> uninitialized = 2916 Handle<Object> uninitialized =
2917 TypeFeedbackInfo::UninitializedSentinel(isolate()); 2917 TypeFeedbackInfo::UninitializedSentinel(isolate());
2918 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); 2918 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized);
2919 if (FLAG_pretenuring_call_new) {
2920 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(),
2921 isolate()->factory()->NewAllocationSite());
2922 ASSERT(expr->AllocationSiteFeedbackSlot() ==
2923 expr->CallNewFeedbackSlot() + 1);
2924 }
2925
2919 __ li(a2, FeedbackVector()); 2926 __ li(a2, FeedbackVector());
2920 __ li(a3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); 2927 __ li(a3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot())));
2921 2928
2922 CallConstructStub stub(RECORD_CALL_TARGET); 2929 CallConstructStub stub(RECORD_CALL_TARGET);
2923 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); 2930 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL);
2924 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 2931 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2925 context()->Plug(v0); 2932 context()->Plug(v0);
2926 } 2933 }
2927 2934
2928 2935
(...skipping 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after
4948 Assembler::target_address_at(pc_immediate_load_address)) == 4955 Assembler::target_address_at(pc_immediate_load_address)) ==
4949 reinterpret_cast<uint32_t>( 4956 reinterpret_cast<uint32_t>(
4950 isolate->builtins()->OsrAfterStackCheck()->entry())); 4957 isolate->builtins()->OsrAfterStackCheck()->entry()));
4951 return OSR_AFTER_STACK_CHECK; 4958 return OSR_AFTER_STACK_CHECK;
4952 } 4959 }
4953 4960
4954 4961
4955 } } // namespace v8::internal 4962 } } // namespace v8::internal
4956 4963
4957 #endif // V8_TARGET_ARCH_MIPS 4964 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698