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

Side by Side Diff: src/arm/builtins-arm.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 | « no previous file | src/arm64/builtins-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 __ mov(r4, Operand(r0, LSL, kPointerSizeLog2)); 948 __ mov(r4, Operand(r0, LSL, kPointerSizeLog2));
949 __ sub(r4, r2, r4); 949 __ sub(r4, r2, r4);
950 950
951 // Push a slot for the receiver to be constructed. 951 // Push a slot for the receiver to be constructed.
952 __ push(r0); 952 __ push(r0);
953 953
954 // Push the arguments. 954 // Push the arguments.
955 Generate_InterpreterPushArgs(masm, r2, r4, r5); 955 Generate_InterpreterPushArgs(masm, r2, r4, r5);
956 956
957 // Call the constructor with r0, r1, and r3 unmodified. 957 // Call the constructor with r0, r1, and r3 unmodified.
958 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CONSTRUCT_CALL); 958 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
959 } 959 }
960 960
961 961
962 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 962 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
963 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 963 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
964 GenerateTailCallToReturnedCode(masm); 964 GenerateTailCallToReturnedCode(masm);
965 } 965 }
966 966
967 967
968 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { 968 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 // Copy all arguments from the array to the stack. 1501 // Copy all arguments from the array to the stack.
1502 Generate_PushAppliedArguments(masm, kVectorOffset, kArgumentsOffset, 1502 Generate_PushAppliedArguments(masm, kVectorOffset, kArgumentsOffset,
1503 kIndexOffset, kLimitOffset); 1503 kIndexOffset, kLimitOffset);
1504 1504
1505 // Use undefined feedback vector 1505 // Use undefined feedback vector
1506 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); 1506 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
1507 __ ldr(r1, MemOperand(fp, kFunctionOffset)); 1507 __ ldr(r1, MemOperand(fp, kFunctionOffset));
1508 __ ldr(r3, MemOperand(fp, kNewTargetOffset)); 1508 __ ldr(r3, MemOperand(fp, kNewTargetOffset));
1509 1509
1510 // Call the function. 1510 // Call the function.
1511 __ Call(masm->isolate()->builtins()->Construct(), 1511 __ Call(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
1512 RelocInfo::CONSTRUCT_CALL);
1513 1512
1514 // Leave internal frame. 1513 // Leave internal frame.
1515 } 1514 }
1516 __ add(sp, sp, Operand(kStackSize * kPointerSize)); 1515 __ add(sp, sp, Operand(kStackSize * kPointerSize));
1517 __ Jump(lr); 1516 __ Jump(lr);
1518 } 1517 }
1519 1518
1520 1519
1521 void Builtins::Generate_FunctionApply(MacroAssembler* masm) { 1520 void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
1522 Generate_ApplyHelper(masm, false); 1521 Generate_ApplyHelper(masm, false);
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 } 1957 }
1959 } 1958 }
1960 1959
1961 1960
1962 #undef __ 1961 #undef __
1963 1962
1964 } // namespace internal 1963 } // namespace internal
1965 } // namespace v8 1964 } // namespace v8
1966 1965
1967 #endif // V8_TARGET_ARCH_ARM 1966 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698