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

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

Issue 64723002: VM: Fix identical comparisons with bigints. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed MIPS Created 7 years, 1 month 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/intermediate_language_x64.cc ('k') | runtime/vm/stub_code_ia32.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_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 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 const Register temp = R2; 2117 const Register temp = R2;
2118 const Register left = R1; 2118 const Register left = R1;
2119 const Register right = R0; 2119 const Register right = R0;
2120 __ ldr(left, Address(SP, 1 * kWordSize)); 2120 __ ldr(left, Address(SP, 1 * kWordSize));
2121 __ ldr(right, Address(SP, 0 * kWordSize)); 2121 __ ldr(right, Address(SP, 0 * kWordSize));
2122 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 2122 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
2123 __ Ret(); 2123 __ Ret();
2124 } 2124 }
2125 2125
2126 2126
2127 // Called from otpimzied code only. Must preserve any registers that are 2127 // Called from optimized code only.
2128 // destroyed.
2129 // LR: return address. 2128 // LR: return address.
2130 // SP + 4: left operand. 2129 // SP + 4: left operand.
2131 // SP + 0: right operand. 2130 // SP + 0: right operand.
2132 // Return Zero condition flag set if equal. 2131 // Return Zero condition flag set if equal.
2133 void StubCode::GenerateOptimizedIdenticalWithNumberCheckStub( 2132 void StubCode::GenerateOptimizedIdenticalWithNumberCheckStub(
2134 Assembler* assembler) { 2133 Assembler* assembler) {
2135 const Register temp = R2; 2134 const Register temp = R2;
2136 const Register left = R1; 2135 const Register left = R1;
2137 const Register right = R0; 2136 const Register right = R0;
2138 // Preserve left, right and temp. 2137 __ ldr(left, Address(SP, 1 * kWordSize));
2139 __ PushList((1 << R0) | (1 << R1) | (1 << R2)); 2138 __ ldr(right, Address(SP, 0 * kWordSize));
2140 __ ldr(left, Address(SP, 4 * kWordSize));
2141 __ ldr(right, Address(SP, 3 * kWordSize));
2142 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 2139 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
2143 __ PopList((1 << R0) | (1 << R1) | (1 << R2));
2144 __ Ret(); 2140 __ Ret();
2145 } 2141 }
2146 2142
2147 } // namespace dart 2143 } // namespace dart
2148 2144
2149 #endif // defined TARGET_ARCH_ARM 2145 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698