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

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

Issue 12212093: Convert some compiler passes to preserve valid def-use chains. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 compiler->EmitDoubleCompareBool( 788 compiler->EmitDoubleCompareBool(
789 true_condition, left, right, locs.out().reg()); 789 true_condition, left, right, locs.out().reg());
790 } 790 }
791 } 791 }
792 792
793 793
794 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 794 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
795 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ)); 795 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ));
796 BranchInstr* kNoBranch = NULL; 796 BranchInstr* kNoBranch = NULL;
797 if (receiver_class_id() == kSmiCid) { 797 if (receiver_class_id() == kSmiCid) {
798 // Deoptimizes if both arguments not Smi.
799 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch); 798 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch);
800 return; 799 return;
801 } 800 }
802 if (receiver_class_id() == kMintCid) { 801 if (receiver_class_id() == kMintCid) {
803 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch); 802 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch);
804 return; 803 return;
805 } 804 }
806 if (receiver_class_id() == kDoubleCid) { 805 if (receiver_class_id() == kDoubleCid) {
807 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch); 806 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch);
808 return; 807 return;
(...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after
3414 PcDescriptors::kOther, 3413 PcDescriptors::kOther,
3415 locs()); 3414 locs());
3416 __ Drop(2); // Discard type arguments and receiver. 3415 __ Drop(2); // Discard type arguments and receiver.
3417 } 3416 }
3418 3417
3419 } // namespace dart 3418 } // namespace dart
3420 3419
3421 #undef __ 3420 #undef __
3422 3421
3423 #endif // defined TARGET_ARCH_IA32 3422 #endif // defined TARGET_ARCH_IA32
OLDNEW
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698