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

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

Issue 22580005: Implement IsNullCheck for CheckClassInstr. If input is nullable expected type, then check for null … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/il_printer.h" 5 #include "vm/il_printer.h"
6 6
7 #include "vm/intermediate_language.h" 7 #include "vm/intermediate_language.h"
8 #include "vm/os.h" 8 #include "vm/os.h"
9 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 786
787 void UnarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { 787 void UnarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const {
788 f->Print("%s, ", Token::Str(op_kind())); 788 f->Print("%s, ", Token::Str(op_kind()));
789 value()->PrintTo(f); 789 value()->PrintTo(f);
790 } 790 }
791 791
792 792
793 void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const { 793 void CheckClassInstr::PrintOperandsTo(BufferFormatter* f) const {
794 value()->PrintTo(f); 794 value()->PrintTo(f);
795 PrintICData(f, unary_checks()); 795 PrintICData(f, unary_checks());
796 if (null_check()) { 796 if (IsNullCheck()) {
797 f->Print(" nullcheck"); 797 f->Print(" nullcheck");
798 } 798 }
799 } 799 }
800 800
801 801
802 void InvokeMathCFunctionInstr::PrintOperandsTo(BufferFormatter* f) const { 802 void InvokeMathCFunctionInstr::PrintOperandsTo(BufferFormatter* f) const {
803 f->Print("%s, ", MethodRecognizer::KindToCString(recognized_kind_)); 803 f->Print("%s, ", MethodRecognizer::KindToCString(recognized_kind_));
804 Definition::PrintOperandsTo(f); 804 Definition::PrintOperandsTo(f);
805 } 805 }
806 806
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 f->Print(" ["); 970 f->Print(" [");
971 locations_[i].PrintTo(f); 971 locations_[i].PrintTo(f);
972 f->Print("]"); 972 f->Print("]");
973 } 973 }
974 } 974 }
975 f->Print(" }"); 975 f->Print(" }");
976 if (outer_ != NULL) outer_->PrintTo(f); 976 if (outer_ != NULL) outer_->PrintTo(f);
977 } 977 }
978 978
979 } // namespace dart 979 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698