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

Side by Side Diff: runtime/vm/intermediate_language_mips.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_ia32.cc ('k') | runtime/vm/intermediate_language_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" // Needed here to get TARGET_ARCH_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after
3804 3804
3805 3805
3806 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 3806 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
3807 __ mov(locs()->out().reg(), CTX); 3807 __ mov(locs()->out().reg(), CTX);
3808 } 3808 }
3809 3809
3810 3810
3811 LocationSummary* StrictCompareInstr::MakeLocationSummary() const { 3811 LocationSummary* StrictCompareInstr::MakeLocationSummary() const {
3812 const intptr_t kNumInputs = 2; 3812 const intptr_t kNumInputs = 2;
3813 const intptr_t kNumTemps = 0; 3813 const intptr_t kNumTemps = 0;
3814 if (needs_number_check()) {
3815 LocationSummary* locs =
3816 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
3817 locs->set_in(0, Location::RegisterLocation(A0));
3818 locs->set_in(1, Location::RegisterLocation(A1));
3819 locs->set_out(Location::RegisterLocation(A0));
3820 return locs;
3821 }
3814 LocationSummary* locs = 3822 LocationSummary* locs =
3815 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 3823 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
3816 locs->set_in(0, Location::RegisterOrConstant(left())); 3824 locs->set_in(0, Location::RegisterOrConstant(left()));
3817 locs->set_in(1, Location::RegisterOrConstant(right())); 3825 locs->set_in(1, Location::RegisterOrConstant(right()));
3818 locs->set_out(Location::RequiresRegister()); 3826 locs->set_out(Location::RequiresRegister());
3819 return locs; 3827 return locs;
3820 } 3828 }
3821 3829
3822 3830
3823 // Special code for numbers (compare values instead of references.) 3831 // Special code for numbers (compare values instead of references.)
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
3987 compiler->GenerateCall(token_pos(), 3995 compiler->GenerateCall(token_pos(),
3988 &label, 3996 &label,
3989 PcDescriptors::kOther, 3997 PcDescriptors::kOther,
3990 locs()); 3998 locs());
3991 __ Drop(2); // Discard type arguments and receiver. 3999 __ Drop(2); // Discard type arguments and receiver.
3992 } 4000 }
3993 4001
3994 } // namespace dart 4002 } // namespace dart
3995 4003
3996 #endif // defined TARGET_ARCH_MIPS 4004 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698