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