OLD | NEW |
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 f->Print("%"Pd, value_); | 244 f->Print("%"Pd, value_); |
245 } | 245 } |
246 break; | 246 break; |
247 case kUnknown: | 247 case kUnknown: |
248 f->Print("_|_"); | 248 f->Print("_|_"); |
249 break; | 249 break; |
250 } | 250 } |
251 } | 251 } |
252 | 252 |
253 | 253 |
| 254 const char* RangeBoundary::ToCString() const { |
| 255 char buffer[256]; |
| 256 BufferFormatter f(buffer, sizeof(buffer)); |
| 257 PrintTo(&f); |
| 258 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
| 259 } |
| 260 |
| 261 |
254 void AssertAssignableInstr::PrintOperandsTo(BufferFormatter* f) const { | 262 void AssertAssignableInstr::PrintOperandsTo(BufferFormatter* f) const { |
255 value()->PrintTo(f); | 263 value()->PrintTo(f); |
256 f->Print(", %s, '%s'%s", | 264 f->Print(", %s, '%s'%s", |
257 String::Handle(dst_type().Name()).ToCString(), | 265 String::Handle(dst_type().Name()).ToCString(), |
258 dst_name().ToCString(), | 266 dst_name().ToCString(), |
259 is_eliminated() ? " eliminated" : ""); | 267 is_eliminated() ? " eliminated" : ""); |
260 f->Print(" instantiator("); | 268 f->Print(" instantiator("); |
261 instantiator()->PrintTo(f); | 269 instantiator()->PrintTo(f); |
262 f->Print(")"); | 270 f->Print(")"); |
263 f->Print(" instantiator_type_arguments("); | 271 f->Print(" instantiator_type_arguments("); |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 f->Print(" ["); | 661 f->Print(" ["); |
654 locations_[i].PrintTo(f); | 662 locations_[i].PrintTo(f); |
655 f->Print("]"); | 663 f->Print("]"); |
656 } | 664 } |
657 } | 665 } |
658 f->Print(" }"); | 666 f->Print(" }"); |
659 if (outer_ != NULL) outer_->PrintTo(f); | 667 if (outer_ != NULL) outer_->PrintTo(f); |
660 } | 668 } |
661 | 669 |
662 } // namespace dart | 670 } // namespace dart |
OLD | NEW |