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

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: Incorporated review comments. 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
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | 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_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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 compiler->EmitDoubleCompareBool( 789 compiler->EmitDoubleCompareBool(
790 true_condition, left, right, locs.out().reg()); 790 true_condition, left, right, locs.out().reg());
791 } 791 }
792 } 792 }
793 793
794 794
795 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 795 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
796 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ)); 796 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ));
797 BranchInstr* kNoBranch = NULL; 797 BranchInstr* kNoBranch = NULL;
798 if (receiver_class_id() == kSmiCid) { 798 if (receiver_class_id() == kSmiCid) {
799 // Deoptimizes if both arguments not Smi.
800 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch); 799 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch);
801 return; 800 return;
802 } 801 }
803 if (receiver_class_id() == kMintCid) { 802 if (receiver_class_id() == kMintCid) {
804 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch); 803 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch);
805 return; 804 return;
806 } 805 }
807 if (receiver_class_id() == kDoubleCid) { 806 if (receiver_class_id() == kDoubleCid) {
808 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch); 807 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch);
809 return; 808 return;
(...skipping 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after
3494 PcDescriptors::kOther, 3493 PcDescriptors::kOther,
3495 locs()); 3494 locs());
3496 __ Drop(2); // Discard type arguments and receiver. 3495 __ Drop(2); // Discard type arguments and receiver.
3497 } 3496 }
3498 3497
3499 } // namespace dart 3498 } // namespace dart
3500 3499
3501 #undef __ 3500 #undef __
3502 3501
3503 #endif // defined TARGET_ARCH_IA32 3502 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698