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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 } | 1636 } |
1637 | 1637 |
1638 | 1638 |
1639 void StubCode::GenerateSmiEqualInlineCacheStub(Assembler* assembler) { | 1639 void StubCode::GenerateSmiEqualInlineCacheStub(Assembler* assembler) { |
1640 GenerateUsageCounterIncrement(assembler, T0); | 1640 GenerateUsageCounterIncrement(assembler, T0); |
1641 GenerateNArgsCheckInlineCacheStub(assembler, 2, | 1641 GenerateNArgsCheckInlineCacheStub(assembler, 2, |
1642 kInlineCacheMissHandlerTwoArgsRuntimeEntry, Token::kEQ); | 1642 kInlineCacheMissHandlerTwoArgsRuntimeEntry, Token::kEQ); |
1643 } | 1643 } |
1644 | 1644 |
1645 | 1645 |
1646 void StubCode::GenerateUnaryRangeCollectingInlineCacheStub( | |
1647 Assembler* assembler) { | |
1648 GenerateUsageCounterIncrement(assembler, T0); | |
1649 GenerateNArgsCheckInlineCacheStub(assembler, 1, | |
1650 kInlineCacheMissHandlerOneArgRuntimeEntry, | |
1651 Token::kILLEGAL); | |
1652 } | |
1653 | |
1654 | |
1655 void StubCode::GenerateBinaryRangeCollectingInlineCacheStub( | |
1656 Assembler* assembler) { | |
1657 GenerateUsageCounterIncrement(assembler, T0); | |
1658 GenerateNArgsCheckInlineCacheStub(assembler, 2, | |
1659 kInlineCacheMissHandlerTwoArgsRuntimeEntry, | |
1660 Token::kILLEGAL); | |
1661 } | |
1662 | |
1663 | |
1664 void StubCode::GenerateOneArgOptimizedCheckInlineCacheStub( | 1646 void StubCode::GenerateOneArgOptimizedCheckInlineCacheStub( |
1665 Assembler* assembler) { | 1647 Assembler* assembler) { |
1666 GenerateOptimizedUsageCounterIncrement(assembler); | 1648 GenerateOptimizedUsageCounterIncrement(assembler); |
1667 GenerateNArgsCheckInlineCacheStub(assembler, 1, | 1649 GenerateNArgsCheckInlineCacheStub(assembler, 1, |
1668 kInlineCacheMissHandlerOneArgRuntimeEntry, Token::kILLEGAL, | 1650 kInlineCacheMissHandlerOneArgRuntimeEntry, Token::kILLEGAL, |
1669 true /* optimized */); | 1651 true /* optimized */); |
1670 } | 1652 } |
1671 | 1653 |
1672 | 1654 |
1673 void StubCode::GenerateTwoArgsOptimizedCheckInlineCacheStub( | 1655 void StubCode::GenerateTwoArgsOptimizedCheckInlineCacheStub( |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 } | 2273 } |
2292 | 2274 |
2293 | 2275 |
2294 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2276 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
2295 __ break_(0); | 2277 __ break_(0); |
2296 } | 2278 } |
2297 | 2279 |
2298 } // namespace dart | 2280 } // namespace dart |
2299 | 2281 |
2300 #endif // defined TARGET_ARCH_MIPS | 2282 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |