| 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/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 __ Bind(&stepping); | 1487 __ Bind(&stepping); |
| 1488 __ EnterStubFrame(); | 1488 __ EnterStubFrame(); |
| 1489 __ Push(R5); // Preserve IC data. | 1489 __ Push(R5); // Preserve IC data. |
| 1490 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); | 1490 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); |
| 1491 __ Pop(R5); | 1491 __ Pop(R5); |
| 1492 __ LeaveStubFrame(); | 1492 __ LeaveStubFrame(); |
| 1493 __ b(&done_stepping); | 1493 __ b(&done_stepping); |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 | 1496 |
| 1497 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) { |
| 1498 GenerateUsageCounterIncrement(assembler, R6); |
| 1499 GenerateNArgsCheckInlineCacheStub( |
| 1500 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry); |
| 1501 } |
| 1502 |
| 1503 |
| 1497 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { | 1504 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { |
| 1498 GenerateUsageCounterIncrement(assembler, R6); | 1505 GenerateUsageCounterIncrement(assembler, R6); |
| 1499 GenerateNArgsCheckInlineCacheStub( | 1506 GenerateNArgsCheckInlineCacheStub( |
| 1500 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); | 1507 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); |
| 1501 } | 1508 } |
| 1502 | 1509 |
| 1503 | 1510 |
| 1504 // Stub for compiling a function and jumping to the compiled code. | 1511 // Stub for compiling a function and jumping to the compiled code. |
| 1505 // R5: IC-Data (for methods). | 1512 // R5: IC-Data (for methods). |
| 1506 // R4: Arguments descriptor. | 1513 // R4: Arguments descriptor. |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 const Register right = R0; | 1867 const Register right = R0; |
| 1861 __ ldr(left, Address(SP, 1 * kWordSize)); | 1868 __ ldr(left, Address(SP, 1 * kWordSize)); |
| 1862 __ ldr(right, Address(SP, 0 * kWordSize)); | 1869 __ ldr(right, Address(SP, 0 * kWordSize)); |
| 1863 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); | 1870 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); |
| 1864 __ Ret(); | 1871 __ Ret(); |
| 1865 } | 1872 } |
| 1866 | 1873 |
| 1867 } // namespace dart | 1874 } // namespace dart |
| 1868 | 1875 |
| 1869 #endif // defined TARGET_ARCH_ARM | 1876 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |