| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Cache Context pointer into CTX while executing Dart code. | 95 // Cache Context pointer into CTX while executing Dart code. |
| 96 __ mov(CTX, ShifterOperand(R2)); | 96 __ mov(CTX, ShifterOperand(R2)); |
| 97 | 97 |
| 98 __ LeaveFrame((1 << FP) | (1 << LR)); | 98 __ LeaveFrame((1 << FP) | (1 << LR)); |
| 99 __ Ret(); | 99 __ Ret(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 | 102 |
| 103 // Print the stop message. | 103 // Print the stop message. |
| 104 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, const char* message) { | 104 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
| 105 OS::Print("Stop message: %s\n", message); | 105 OS::Print("Stop message: %s\n", message); |
| 106 } | 106 } |
| 107 END_LEAF_RUNTIME_ENTRY | 107 END_LEAF_RUNTIME_ENTRY |
| 108 | 108 |
| 109 | 109 |
| 110 // Input parameters: | 110 // Input parameters: |
| 111 // R0 : stop message (const char*). | 111 // R0 : stop message (const char*). |
| 112 // Must preserve all registers. | 112 // Must preserve all registers. |
| 113 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { | 113 void StubCode::GeneratePrintStopMessageStub(Assembler* assembler) { |
| 114 __ EnterCallRuntimeFrame(0); | 114 __ EnterCallRuntimeFrame(0); |
| (...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1980 __ Bind(&reference_compare); | 1980 __ Bind(&reference_compare); |
| 1981 __ cmp(left, ShifterOperand(right)); | 1981 __ cmp(left, ShifterOperand(right)); |
| 1982 __ Bind(&done); | 1982 __ Bind(&done); |
| 1983 __ PopList((1 << R0) | (1 << R1) | (1 << R2)); | 1983 __ PopList((1 << R0) | (1 << R1) | (1 << R2)); |
| 1984 __ Ret(); | 1984 __ Ret(); |
| 1985 } | 1985 } |
| 1986 | 1986 |
| 1987 } // namespace dart | 1987 } // namespace dart |
| 1988 | 1988 |
| 1989 #endif // defined TARGET_ARCH_ARM | 1989 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |