| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |