| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 // TODO(rmcilroy): List of things not currently dealt with here but done in | 1018 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 1019 // fullcodegen's EmitReturnSequence. | 1019 // fullcodegen's EmitReturnSequence. |
| 1020 // - Supporting FLAG_trace for Runtime::TraceExit. | 1020 // - Supporting FLAG_trace for Runtime::TraceExit. |
| 1021 // - Support profiler (specifically decrementing profiling_counter | 1021 // - Support profiler (specifically decrementing profiling_counter |
| 1022 // appropriately and calling out to HandleInterrupts if necessary). | 1022 // appropriately and calling out to HandleInterrupts if necessary). |
| 1023 | 1023 |
| 1024 // The return value is in accumulator, which is already in x0. | 1024 // The return value is in accumulator, which is already in x0. |
| 1025 | 1025 |
| 1026 // Leave the frame (also dropping the register file). | 1026 // Leave the frame (also dropping the register file). |
| 1027 __ LeaveFrame(StackFrame::JAVA_SCRIPT); | 1027 __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
| 1028 // Drop receiver + arguments. | 1028 |
| 1029 // TODO(rmcilroy): Get number of arguments from BytecodeArray. | 1029 // Drop receiver + arguments and return. |
| 1030 __ Drop(1, kXRegSize); | 1030 __ Ldr(w1, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
| 1031 BytecodeArray::kParameterSizeOffset)); |
| 1032 __ Drop(x1, 1); |
| 1031 __ Ret(); | 1033 __ Ret(); |
| 1032 } | 1034 } |
| 1033 | 1035 |
| 1034 | 1036 |
| 1035 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 1037 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
| 1036 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 1038 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
| 1037 GenerateTailCallToReturnedCode(masm); | 1039 GenerateTailCallToReturnedCode(masm); |
| 1038 } | 1040 } |
| 1039 | 1041 |
| 1040 | 1042 |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 } | 1933 } |
| 1932 } | 1934 } |
| 1933 | 1935 |
| 1934 | 1936 |
| 1935 #undef __ | 1937 #undef __ |
| 1936 | 1938 |
| 1937 } // namespace internal | 1939 } // namespace internal |
| 1938 } // namespace v8 | 1940 } // namespace v8 |
| 1939 | 1941 |
| 1940 #endif // V8_TARGET_ARCH_ARM | 1942 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |