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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 __ StoreToOffset(R2, R28, Isolate::vm_tag_offset()); | 121 __ StoreToOffset(R2, R28, Isolate::vm_tag_offset()); |
122 | 122 |
123 // Reset exit frame information in Isolate structure. | 123 // Reset exit frame information in Isolate structure. |
124 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); | 124 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); |
125 | 125 |
126 __ LeaveStubFrame(); | 126 __ LeaveStubFrame(); |
127 __ ret(); | 127 __ ret(); |
128 } | 128 } |
129 | 129 |
130 | 130 |
| 131 // Print the stop message. |
| 132 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
| 133 OS::Print("Stop message: %s\n", message); |
| 134 } |
| 135 END_LEAF_RUNTIME_ENTRY |
| 136 |
| 137 |
131 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 138 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
132 __ Stop("GeneratePrintStopMessageStub"); | 139 __ Stop("GeneratePrintStopMessageStub"); |
133 } | 140 } |
134 | 141 |
135 | 142 |
136 // Input parameters: | 143 // Input parameters: |
137 // LR : return address. | 144 // LR : return address. |
138 // SP : address of return value. | 145 // SP : address of return value. |
139 // R5 : address of the native function to call. | 146 // R5 : address of the native function to call. |
140 // R2 : address of first argument in argument array. | 147 // R2 : address of first argument in argument array. |
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 // Result: | 2127 // Result: |
2121 // R1: entry point. | 2128 // R1: entry point. |
2122 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) { | 2129 void StubCode::GenerateMegamorphicLookupStub(Assembler* assembler) { |
2123 EmitMegamorphicLookup(assembler, R0, R1, R1); | 2130 EmitMegamorphicLookup(assembler, R0, R1, R1); |
2124 __ ret(); | 2131 __ ret(); |
2125 } | 2132 } |
2126 | 2133 |
2127 } // namespace dart | 2134 } // namespace dart |
2128 | 2135 |
2129 #endif // defined TARGET_ARCH_ARM64 | 2136 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |