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/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 10529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10540 } | 10540 } |
10541 } | 10541 } |
10542 | 10542 |
10543 | 10543 |
10544 static int PrintVarInfo(char* buffer, int len, | 10544 static int PrintVarInfo(char* buffer, int len, |
10545 intptr_t i, | 10545 intptr_t i, |
10546 const String& var_name, | 10546 const String& var_name, |
10547 const RawLocalVarDescriptors::VarInfo& info) { | 10547 const RawLocalVarDescriptors::VarInfo& info) { |
10548 if (info.kind == RawLocalVarDescriptors::kContextLevel) { | 10548 if (info.kind == RawLocalVarDescriptors::kContextLevel) { |
10549 return OS::SNPrint(buffer, len, | 10549 return OS::SNPrint(buffer, len, |
10550 "%2" Pd " %-13s level=%-3" Pd " scope=%-3d" | 10550 "%2" Pd " %-13s level=%-3d scope=%-3d" |
10551 " begin=%-3" Pd " end=%" Pd "\n", | 10551 " begin=%-3d end=%d\n", |
10552 i, | 10552 i, |
10553 VarKindString(info.kind), | 10553 VarKindString(info.kind), |
10554 info.index, | 10554 info.index, |
10555 info.scope_id, | 10555 info.scope_id, |
10556 info.begin_pos, | 10556 info.begin_pos, |
10557 info.end_pos); | 10557 info.end_pos); |
10558 } else if (info.kind == RawLocalVarDescriptors::kContextVar) { | 10558 } else if (info.kind == RawLocalVarDescriptors::kContextVar) { |
10559 return OS::SNPrint(buffer, len, | 10559 return OS::SNPrint(buffer, len, |
10560 "%2" Pd " %-13s level=%-3d index=%-3" Pd "" | 10560 "%2" Pd " %-13s level=%-3d index=%-3d" |
10561 " begin=%-3" Pd " end=%-3" Pd " name=%s\n", | 10561 " begin=%-3d end=%-3d name=%s\n", |
10562 i, | 10562 i, |
10563 VarKindString(info.kind), | 10563 VarKindString(info.kind), |
10564 info.scope_id, | 10564 info.scope_id, |
10565 info.index, | 10565 info.index, |
10566 info.begin_pos, | 10566 info.begin_pos, |
10567 info.end_pos, | 10567 info.end_pos, |
10568 var_name.ToCString()); | 10568 var_name.ToCString()); |
10569 } else { | 10569 } else { |
10570 return OS::SNPrint(buffer, len, | 10570 return OS::SNPrint(buffer, len, |
10571 "%2" Pd " %-13s scope=%-3d index=%-3" Pd "" | 10571 "%2" Pd " %-13s scope=%-3d index=%-3d" |
10572 " begin=%-3" Pd " end=%-3" Pd " name=%s\n", | 10572 " begin=%-3d end=%-3d name=%s\n", |
10573 i, | 10573 i, |
10574 VarKindString(info.kind), | 10574 VarKindString(info.kind), |
10575 info.scope_id, | 10575 info.scope_id, |
10576 info.index, | 10576 info.index, |
10577 info.begin_pos, | 10577 info.begin_pos, |
10578 info.end_pos, | 10578 info.end_pos, |
10579 var_name.ToCString()); | 10579 var_name.ToCString()); |
10580 } | 10580 } |
10581 } | 10581 } |
10582 | 10582 |
(...skipping 8505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19088 return tag_label.ToCString(); | 19088 return tag_label.ToCString(); |
19089 } | 19089 } |
19090 | 19090 |
19091 | 19091 |
19092 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19092 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
19093 Instance::PrintJSONImpl(stream, ref); | 19093 Instance::PrintJSONImpl(stream, ref); |
19094 } | 19094 } |
19095 | 19095 |
19096 | 19096 |
19097 } // namespace dart | 19097 } // namespace dart |
OLD | NEW |