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

Side by Side Diff: src/mips64/builtins-mips64.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
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/objects.cc » ('j') | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 Label loop_header, loop_check; 943 Label loop_header, loop_check;
944 __ Branch(&loop_check); 944 __ Branch(&loop_check);
945 __ bind(&loop_header); 945 __ bind(&loop_header);
946 __ ld(t1, MemOperand(a2)); 946 __ ld(t1, MemOperand(a2));
947 __ Daddu(a2, a2, Operand(-kPointerSize)); 947 __ Daddu(a2, a2, Operand(-kPointerSize));
948 __ push(t1); 948 __ push(t1);
949 __ bind(&loop_check); 949 __ bind(&loop_check);
950 __ Branch(&loop_header, gt, a2, Operand(t0)); 950 __ Branch(&loop_header, gt, a2, Operand(t0));
951 951
952 // Call the constructor with a0, a1, and a3 unmodified. 952 // Call the constructor with a0, a1, and a3 unmodified.
953 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CONSTRUCT_CALL); 953 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
954 } 954 }
955 955
956 956
957 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 957 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
958 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 958 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
959 GenerateTailCallToReturnedCode(masm); 959 GenerateTailCallToReturnedCode(masm);
960 } 960 }
961 961
962 962
963 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { 963 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) {
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 // Copy all arguments from the array to the stack. 1505 // Copy all arguments from the array to the stack.
1506 Generate_PushAppliedArguments(masm, kVectorOffset, kArgumentsOffset, 1506 Generate_PushAppliedArguments(masm, kVectorOffset, kArgumentsOffset,
1507 kIndexOffset, kLimitOffset); 1507 kIndexOffset, kLimitOffset);
1508 1508
1509 // Use undefined feedback vector 1509 // Use undefined feedback vector
1510 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 1510 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
1511 __ ld(a1, MemOperand(fp, kFunctionOffset)); 1511 __ ld(a1, MemOperand(fp, kFunctionOffset));
1512 __ ld(a3, MemOperand(fp, kNewTargetOffset)); 1512 __ ld(a3, MemOperand(fp, kNewTargetOffset));
1513 1513
1514 // Call the function. 1514 // Call the function.
1515 __ Call(masm->isolate()->builtins()->Construct(), 1515 __ Call(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
1516 RelocInfo::CONSTRUCT_CALL);
1517 1516
1518 // Leave internal frame. 1517 // Leave internal frame.
1519 } 1518 }
1520 __ jr(ra); 1519 __ jr(ra);
1521 __ Daddu(sp, sp, Operand(kStackSize * kPointerSize)); // In delay slot. 1520 __ Daddu(sp, sp, Operand(kStackSize * kPointerSize)); // In delay slot.
1522 } 1521 }
1523 1522
1524 1523
1525 void Builtins::Generate_FunctionApply(MacroAssembler* masm) { 1524 void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
1526 Generate_ApplyHelper(masm, false); 1525 Generate_ApplyHelper(masm, false);
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 } 1978 }
1980 } 1979 }
1981 1980
1982 1981
1983 #undef __ 1982 #undef __
1984 1983
1985 } // namespace internal 1984 } // namespace internal
1986 } // namespace v8 1985 } // namespace v8
1987 1986
1988 #endif // V8_TARGET_ARCH_MIPS64 1987 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698