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

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: rebased and addressed comments 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
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 __ sw(RA, Address(SP, 0 * kWordSize)); // Return address. 1679 __ sw(RA, Address(SP, 0 * kWordSize)); // Return address.
1680 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); 1680 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
1681 __ lw(RA, Address(SP, 0 * kWordSize)); 1681 __ lw(RA, Address(SP, 0 * kWordSize));
1682 __ lw(S5, Address(SP, 1 * kWordSize)); 1682 __ lw(S5, Address(SP, 1 * kWordSize));
1683 __ addiu(SP, SP, Immediate(2 * kWordSize)); 1683 __ addiu(SP, SP, Immediate(2 * kWordSize));
1684 __ LeaveStubFrame(); 1684 __ LeaveStubFrame();
1685 __ b(&done_stepping); 1685 __ b(&done_stepping);
1686 } 1686 }
1687 1687
1688 1688
1689 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) {
1690 GenerateUsageCounterIncrement(assembler, T0);
1691 GenerateNArgsCheckInlineCacheStub(
1692 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry);
1693 }
1694
1695
1689 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { 1696 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) {
1690 GenerateUsageCounterIncrement(assembler, T0); 1697 GenerateUsageCounterIncrement(assembler, T0);
1691 GenerateNArgsCheckInlineCacheStub( 1698 GenerateNArgsCheckInlineCacheStub(
1692 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); 1699 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry);
1693 } 1700 }
1694 1701
1695 1702
1696 // Stub for compiling a function and jumping to the compiled code. 1703 // Stub for compiling a function and jumping to the compiled code.
1697 // S5: IC-Data (for methods). 1704 // S5: IC-Data (for methods).
1698 // S4: Arguments descriptor. 1705 // S4: Arguments descriptor.
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 const Register right = T0; 2113 const Register right = T0;
2107 __ lw(left, Address(SP, 1 * kWordSize)); 2114 __ lw(left, Address(SP, 1 * kWordSize));
2108 __ lw(right, Address(SP, 0 * kWordSize)); 2115 __ lw(right, Address(SP, 0 * kWordSize));
2109 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2); 2116 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2);
2110 __ Ret(); 2117 __ Ret();
2111 } 2118 }
2112 2119
2113 } // namespace dart 2120 } // namespace dart
2114 2121
2115 #endif // defined TARGET_ARCH_MIPS 2122 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698