| 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 14952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14963 JSONArray jsarr(jsobj, "fields"); | 14963 JSONArray jsarr(jsobj, "fields"); |
| 14964 while (!cls.IsNull()) { | 14964 while (!cls.IsNull()) { |
| 14965 const Array& field_array = Array::Handle(cls.fields()); | 14965 const Array& field_array = Array::Handle(cls.fields()); |
| 14966 Field& field = Field::Handle(); | 14966 Field& field = Field::Handle(); |
| 14967 if (!field_array.IsNull()) { | 14967 if (!field_array.IsNull()) { |
| 14968 for (intptr_t i = 0; i < field_array.Length(); i++) { | 14968 for (intptr_t i = 0; i < field_array.Length(); i++) { |
| 14969 field ^= field_array.At(i); | 14969 field ^= field_array.At(i); |
| 14970 if (!field.is_static()) { | 14970 if (!field.is_static()) { |
| 14971 fieldValue ^= GetField(field); | 14971 fieldValue ^= GetField(field); |
| 14972 JSONObject jsfield(&jsarr); | 14972 JSONObject jsfield(&jsarr); |
| 14973 jsfield.AddProperty("type", "BoundField"); |
| 14973 jsfield.AddProperty("decl", field); | 14974 jsfield.AddProperty("decl", field); |
| 14974 jsfield.AddProperty("value", fieldValue); | 14975 jsfield.AddProperty("value", fieldValue); |
| 14975 } | 14976 } |
| 14976 } | 14977 } |
| 14977 } | 14978 } |
| 14978 cls = cls.SuperClass(); | 14979 cls = cls.SuperClass(); |
| 14979 } | 14980 } |
| 14980 } | 14981 } |
| 14981 | 14982 |
| 14982 if (NumNativeFields() > 0) { | 14983 if (NumNativeFields() > 0) { |
| (...skipping 6768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21751 return tag_label.ToCString(); | 21752 return tag_label.ToCString(); |
| 21752 } | 21753 } |
| 21753 | 21754 |
| 21754 | 21755 |
| 21755 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21756 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 21756 Instance::PrintJSONImpl(stream, ref); | 21757 Instance::PrintJSONImpl(stream, ref); |
| 21757 } | 21758 } |
| 21758 | 21759 |
| 21759 | 21760 |
| 21760 } // namespace dart | 21761 } // namespace dart |
| OLD | NEW |