| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 __ mov(R1, R5); // Pass the function entrypoint to call. | 219 __ mov(R1, R5); // Pass the function entrypoint to call. |
| 220 // Call native function invocation wrapper or redirection via simulator. | 220 // Call native function invocation wrapper or redirection via simulator. |
| 221 #if defined(USING_SIMULATOR) | 221 #if defined(USING_SIMULATOR) |
| 222 uword entry = reinterpret_cast<uword>(NativeEntry::NativeCallWrapper); | 222 uword entry = reinterpret_cast<uword>(NativeEntry::NativeCallWrapper); |
| 223 entry = Simulator::RedirectExternalReference( | 223 entry = Simulator::RedirectExternalReference( |
| 224 entry, Simulator::kNativeCall, NativeEntry::kNumCallWrapperArguments); | 224 entry, Simulator::kNativeCall, NativeEntry::kNumCallWrapperArguments); |
| 225 __ LoadImmediate(R2, entry, kNoPP); | 225 __ LoadImmediate(R2, entry, kNoPP); |
| 226 __ blr(R2); | 226 __ blr(R2); |
| 227 #else | 227 #else |
| 228 __ BranchLink(&NativeEntry::NativeCallWrapperLabel()); | 228 __ BranchLink(&NativeEntry::NativeCallWrapperLabel(), kNoPP); |
| 229 #endif | 229 #endif |
| 230 __ b(&done); | 230 __ b(&done); |
| 231 | 231 |
| 232 __ Bind(&leaf_call); | 232 __ Bind(&leaf_call); |
| 233 // Call native function or redirection via simulator. | 233 // Call native function or redirection via simulator. |
| 234 __ blr(R5); | 234 __ blr(R5); |
| 235 | 235 |
| 236 __ Bind(&done); | 236 __ Bind(&done); |
| 237 | 237 |
| 238 // Mark that the isolate is executing Dart code. | 238 // Mark that the isolate is executing Dart code. |
| (...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 const Register right = R0; | 1924 const Register right = R0; |
| 1925 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP); | 1925 __ LoadFromOffset(left, SP, 1 * kWordSize, kNoPP); |
| 1926 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP); | 1926 __ LoadFromOffset(right, SP, 0 * kWordSize, kNoPP); |
| 1927 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); | 1927 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); |
| 1928 __ ret(); | 1928 __ ret(); |
| 1929 } | 1929 } |
| 1930 | 1930 |
| 1931 } // namespace dart | 1931 } // namespace dart |
| 1932 | 1932 |
| 1933 #endif // defined TARGET_ARCH_ARM64 | 1933 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |