| 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 12547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12558 Class& cls = Class::Handle(this->clazz()); | 12558 Class& cls = Class::Handle(this->clazz()); |
| 12559 jsobj.AddProperty("class", cls); | 12559 jsobj.AddProperty("class", cls); |
| 12560 | 12560 |
| 12561 jsobj.AddProperty("size", raw()->Size()); | 12561 jsobj.AddProperty("size", raw()->Size()); |
| 12562 | 12562 |
| 12563 const Context& parent_context = Context::Handle(parent()); | 12563 const Context& parent_context = Context::Handle(parent()); |
| 12564 jsobj.AddProperty("parent", parent_context); | 12564 jsobj.AddProperty("parent", parent_context); |
| 12565 | 12565 |
| 12566 JSONArray jsarr(&jsobj, "variables"); | 12566 JSONArray jsarr(&jsobj, "variables"); |
| 12567 for (intptr_t i = 0; i < num_variables(); i++) { | 12567 for (intptr_t i = 0; i < num_variables(); i++) { |
| 12568 const Instance& var = Instance::Handle(At(i)); | 12568 const Object& var = Object::Handle(At(i)); |
| 12569 JSONObject jselement(&jsarr); | 12569 JSONObject jselement(&jsarr); |
| 12570 jselement.AddProperty("index", i); | 12570 jselement.AddProperty("index", i); |
| 12571 jselement.AddProperty("value", var); | 12571 jselement.AddProperty("value", var); |
| 12572 } | 12572 } |
| 12573 } | 12573 } |
| 12574 | 12574 |
| 12575 | 12575 |
| 12576 RawContextScope* ContextScope::New(intptr_t num_variables) { | 12576 RawContextScope* ContextScope::New(intptr_t num_variables) { |
| 12577 ASSERT(Object::context_scope_class() != Class::null()); | 12577 ASSERT(Object::context_scope_class() != Class::null()); |
| 12578 if (num_variables < 0 || num_variables > kMaxElements) { | 12578 if (num_variables < 0 || num_variables > kMaxElements) { |
| (...skipping 7831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20410 return tag_label.ToCString(); | 20410 return tag_label.ToCString(); |
| 20411 } | 20411 } |
| 20412 | 20412 |
| 20413 | 20413 |
| 20414 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20414 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20415 Instance::PrintJSONImpl(stream, ref); | 20415 Instance::PrintJSONImpl(stream, ref); |
| 20416 } | 20416 } |
| 20417 | 20417 |
| 20418 | 20418 |
| 20419 } // namespace dart | 20419 } // namespace dart |
| OLD | NEW |