Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: runtime/vm/stub_code_mips.cc

Issue 484693003: Improve polymorphic inlining of int/int double/double operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 // Get function and call it, if possible. 1680 // Get function and call it, if possible.
1681 __ lw(T0, Address(T0, target_offset)); 1681 __ lw(T0, Address(T0, target_offset));
1682 __ lw(T4, FieldAddress(T0, Function::instructions_offset())); 1682 __ lw(T4, FieldAddress(T0, Function::instructions_offset()));
1683 1683
1684 // T4: target instructions. 1684 // T4: target instructions.
1685 __ AddImmediate(T4, Instructions::HeaderSize() - kHeapObjectTag); 1685 __ AddImmediate(T4, Instructions::HeaderSize() - kHeapObjectTag);
1686 __ jr(T4); 1686 __ jr(T4);
1687 } 1687 }
1688 1688
1689 1689
1690 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) {
1691 GenerateUsageCounterIncrement(assembler, T0);
1692 GenerateNArgsCheckInlineCacheStub(
1693 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry);
1694 }
1695
1696
1690 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1697 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1691 GenerateUsageCounterIncrement(assembler, T0); 1698 GenerateUsageCounterIncrement(assembler, T0);
1692 GenerateNArgsCheckInlineCacheStub( 1699 GenerateNArgsCheckInlineCacheStub(
1693 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); 1700 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry);
1694 } 1701 }
1695 1702
1696 1703
1697 // Stub for compiling a function and jumping to the compiled code. 1704 // Stub for compiling a function and jumping to the compiled code.
1698 // S5: IC-Data (for methods). 1705 // S5: IC-Data (for methods).
1699 // S4: Arguments descriptor. 1706 // S4: Arguments descriptor.
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 const Register right = T0; 2108 const Register right = T0;
2102 __ lw(left, Address(SP, 1 * kWordSize)); 2109 __ lw(left, Address(SP, 1 * kWordSize));
2103 __ lw(right, Address(SP, 0 * kWordSize)); 2110 __ lw(right, Address(SP, 0 * kWordSize));
2104 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2); 2111 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2);
2105 __ Ret(); 2112 __ Ret();
2106 } 2113 }
2107 2114
2108 } // namespace dart 2115 } // namespace dart
2109 2116
2110 #endif // defined TARGET_ARCH_MIPS 2117 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698