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/crankshaft/mips/lithium-codegen-mips.cc

Issue 1483933002: Deprecate unused RelocInfo::CONSTRUCT_CALL mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 3822 matching lines...) Expand 10 before | Expand all | Expand 10 after
3833 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 3833 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
3834 } 3834 }
3835 ElementsKind kind = instr->hydrogen()->elements_kind(); 3835 ElementsKind kind = instr->hydrogen()->elements_kind();
3836 AllocationSiteOverrideMode override_mode = 3836 AllocationSiteOverrideMode override_mode =
3837 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) 3837 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
3838 ? DISABLE_ALLOCATION_SITES 3838 ? DISABLE_ALLOCATION_SITES
3839 : DONT_OVERRIDE; 3839 : DONT_OVERRIDE;
3840 3840
3841 if (instr->arity() == 0) { 3841 if (instr->arity() == 0) {
3842 ArrayNoArgumentConstructorStub stub(isolate(), kind, override_mode); 3842 ArrayNoArgumentConstructorStub stub(isolate(), kind, override_mode);
3843 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 3843 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3844 } else if (instr->arity() == 1) { 3844 } else if (instr->arity() == 1) {
3845 Label done; 3845 Label done;
3846 if (IsFastPackedElementsKind(kind)) { 3846 if (IsFastPackedElementsKind(kind)) {
3847 Label packed_case; 3847 Label packed_case;
3848 // We might need a change here, 3848 // We might need a change here,
3849 // look at the first argument. 3849 // look at the first argument.
3850 __ lw(t1, MemOperand(sp, 0)); 3850 __ lw(t1, MemOperand(sp, 0));
3851 __ Branch(&packed_case, eq, t1, Operand(zero_reg)); 3851 __ Branch(&packed_case, eq, t1, Operand(zero_reg));
3852 3852
3853 ElementsKind holey_kind = GetHoleyElementsKind(kind); 3853 ElementsKind holey_kind = GetHoleyElementsKind(kind);
3854 ArraySingleArgumentConstructorStub stub(isolate(), 3854 ArraySingleArgumentConstructorStub stub(isolate(),
3855 holey_kind, 3855 holey_kind,
3856 override_mode); 3856 override_mode);
3857 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 3857 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3858 __ jmp(&done); 3858 __ jmp(&done);
3859 __ bind(&packed_case); 3859 __ bind(&packed_case);
3860 } 3860 }
3861 3861
3862 ArraySingleArgumentConstructorStub stub(isolate(), kind, override_mode); 3862 ArraySingleArgumentConstructorStub stub(isolate(), kind, override_mode);
3863 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 3863 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3864 __ bind(&done); 3864 __ bind(&done);
3865 } else { 3865 } else {
3866 ArrayNArgumentsConstructorStub stub(isolate(), kind, override_mode); 3866 ArrayNArgumentsConstructorStub stub(isolate(), kind, override_mode);
3867 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); 3867 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3868 } 3868 }
3869 } 3869 }
3870 3870
3871 3871
3872 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 3872 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
3873 CallRuntime(instr->function(), instr->arity(), instr); 3873 CallRuntime(instr->function(), instr->arity(), instr);
3874 } 3874 }
3875 3875
3876 3876
3877 void LCodeGen::DoStoreCodeEntry(LStoreCodeEntry* instr) { 3877 void LCodeGen::DoStoreCodeEntry(LStoreCodeEntry* instr) {
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
5765 __ Push(at, ToRegister(instr->function())); 5765 __ Push(at, ToRegister(instr->function()));
5766 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5766 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5767 RecordSafepoint(Safepoint::kNoLazyDeopt); 5767 RecordSafepoint(Safepoint::kNoLazyDeopt);
5768 } 5768 }
5769 5769
5770 5770
5771 #undef __ 5771 #undef __
5772 5772
5773 } // namespace internal 5773 } // namespace internal
5774 } // namespace v8 5774 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698