| 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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 assembler, 3, kInlineCacheMissHandlerThreeArgsRuntimeEntry); | 1449 assembler, 3, kInlineCacheMissHandlerThreeArgsRuntimeEntry); |
| 1450 } | 1450 } |
| 1451 | 1451 |
| 1452 | 1452 |
| 1453 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { | 1453 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { |
| 1454 GenerateNArgsCheckInlineCacheStub( | 1454 GenerateNArgsCheckInlineCacheStub( |
| 1455 assembler, 1, kInlineCacheMissHandlerOneArgRuntimeEntry); | 1455 assembler, 1, kInlineCacheMissHandlerOneArgRuntimeEntry); |
| 1456 } | 1456 } |
| 1457 | 1457 |
| 1458 | 1458 |
| 1459 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) { | |
| 1460 GenerateNArgsCheckInlineCacheStub( | |
| 1461 assembler, 1, kInlineCacheMissHandlerOneArgRuntimeEntry); | |
| 1462 } | |
| 1463 | |
| 1464 | |
| 1465 // Intermediary stub between a static call and its target. ICData contains | 1459 // Intermediary stub between a static call and its target. ICData contains |
| 1466 // the target function and the call count. | 1460 // the target function and the call count. |
| 1467 // R5: ICData | 1461 // R5: ICData |
| 1468 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { | 1462 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { |
| 1469 GenerateUsageCounterIncrement(assembler, R6); | 1463 GenerateUsageCounterIncrement(assembler, R6); |
| 1470 #if defined(DEBUG) | 1464 #if defined(DEBUG) |
| 1471 { Label ok; | 1465 { Label ok; |
| 1472 // Check that the IC data array has NumArgsTested() == 0. | 1466 // Check that the IC data array has NumArgsTested() == 0. |
| 1473 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. | 1467 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. |
| 1474 __ ldr(R6, FieldAddress(R5, ICData::state_bits_offset())); | 1468 __ ldr(R6, FieldAddress(R5, ICData::state_bits_offset())); |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1852 const Register right = R0; | 1846 const Register right = R0; |
| 1853 __ ldr(left, Address(SP, 1 * kWordSize)); | 1847 __ ldr(left, Address(SP, 1 * kWordSize)); |
| 1854 __ ldr(right, Address(SP, 0 * kWordSize)); | 1848 __ ldr(right, Address(SP, 0 * kWordSize)); |
| 1855 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); | 1849 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); |
| 1856 __ Ret(); | 1850 __ Ret(); |
| 1857 } | 1851 } |
| 1858 | 1852 |
| 1859 } // namespace dart | 1853 } // namespace dart |
| 1860 | 1854 |
| 1861 #endif // defined TARGET_ARCH_ARM | 1855 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |