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

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

Issue 1420633003: Include "BoundVariable" and "BoundField" types in service response (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « runtime/vm/debugger.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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698