| 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_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 | 1697 |
| 1698 | 1698 |
| 1699 void StubCode::GenerateThreeArgsOptimizedCheckInlineCacheStub( | 1699 void StubCode::GenerateThreeArgsOptimizedCheckInlineCacheStub( |
| 1700 Assembler* assembler) { | 1700 Assembler* assembler) { |
| 1701 GenerateOptimizedUsageCounterIncrement(assembler); | 1701 GenerateOptimizedUsageCounterIncrement(assembler); |
| 1702 GenerateNArgsCheckInlineCacheStub(assembler, 3, | 1702 GenerateNArgsCheckInlineCacheStub(assembler, 3, |
| 1703 kInlineCacheMissHandlerThreeArgsRuntimeEntry, Token::kILLEGAL); | 1703 kInlineCacheMissHandlerThreeArgsRuntimeEntry, Token::kILLEGAL); |
| 1704 } | 1704 } |
| 1705 | 1705 |
| 1706 | 1706 |
| 1707 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { | |
| 1708 GenerateNArgsCheckInlineCacheStub(assembler, 1, | |
| 1709 kInlineCacheMissHandlerOneArgRuntimeEntry, Token::kILLEGAL); | |
| 1710 } | |
| 1711 | |
| 1712 | |
| 1713 // Intermediary stub between a static call and its target. ICData contains | 1707 // Intermediary stub between a static call and its target. ICData contains |
| 1714 // the target function and the call count. | 1708 // the target function and the call count. |
| 1715 // S5: ICData | 1709 // S5: ICData |
| 1716 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { | 1710 void StubCode::GenerateZeroArgsUnoptimizedStaticCallStub(Assembler* assembler) { |
| 1717 GenerateUsageCounterIncrement(assembler, T0); | 1711 GenerateUsageCounterIncrement(assembler, T0); |
| 1718 __ TraceSimMsg("UnoptimizedStaticCallStub"); | 1712 __ TraceSimMsg("UnoptimizedStaticCallStub"); |
| 1719 #if defined(DEBUG) | 1713 #if defined(DEBUG) |
| 1720 { Label ok; | 1714 { Label ok; |
| 1721 // Check that the IC data array has NumArgsTested() == 0. | 1715 // Check that the IC data array has NumArgsTested() == 0. |
| 1722 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. | 1716 // 'NumArgsTested' is stored in the least significant bits of 'state_bits'. |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2205 const Register right = T0; | 2199 const Register right = T0; |
| 2206 __ lw(left, Address(SP, 1 * kWordSize)); | 2200 __ lw(left, Address(SP, 1 * kWordSize)); |
| 2207 __ lw(right, Address(SP, 0 * kWordSize)); | 2201 __ lw(right, Address(SP, 0 * kWordSize)); |
| 2208 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2); | 2202 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2); |
| 2209 __ Ret(); | 2203 __ Ret(); |
| 2210 } | 2204 } |
| 2211 | 2205 |
| 2212 } // namespace dart | 2206 } // namespace dart |
| 2213 | 2207 |
| 2214 #endif // defined TARGET_ARCH_MIPS | 2208 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |