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 4187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4198 | 4198 |
4199 const Error& err = Error::Handle(EnsureIsFinalized(Isolate::Current())); | 4199 const Error& err = Error::Handle(EnsureIsFinalized(Isolate::Current())); |
4200 if (!err.IsNull()) { | 4200 if (!err.IsNull()) { |
4201 jsobj.AddProperty("error", err); | 4201 jsobj.AddProperty("error", err); |
4202 } | 4202 } |
4203 jsobj.AddProperty("abstract", is_abstract()); | 4203 jsobj.AddProperty("abstract", is_abstract()); |
4204 jsobj.AddProperty("const", is_const()); | 4204 jsobj.AddProperty("const", is_const()); |
4205 jsobj.AddProperty("_finalized", is_finalized()); | 4205 jsobj.AddProperty("_finalized", is_finalized()); |
4206 jsobj.AddProperty("_implemented", is_implemented()); | 4206 jsobj.AddProperty("_implemented", is_implemented()); |
4207 jsobj.AddProperty("_patch", is_patch()); | 4207 jsobj.AddProperty("_patch", is_patch()); |
| 4208 jsobj.AddProperty("_traceAllocations", trace_allocation()); |
4208 const Class& superClass = Class::Handle(SuperClass()); | 4209 const Class& superClass = Class::Handle(SuperClass()); |
4209 if (!superClass.IsNull()) { | 4210 if (!superClass.IsNull()) { |
4210 jsobj.AddProperty("super", superClass); | 4211 jsobj.AddProperty("super", superClass); |
4211 } | 4212 } |
4212 jsobj.AddProperty("library", Object::Handle(library())); | 4213 jsobj.AddProperty("library", Object::Handle(library())); |
4213 const Script& script = Script::Handle(this->script()); | 4214 const Script& script = Script::Handle(this->script()); |
4214 if (!script.IsNull()) { | 4215 if (!script.IsNull()) { |
4215 jsobj.AddLocation(script, token_pos(), ComputeEndTokenPos()); | 4216 jsobj.AddLocation(script, token_pos(), ComputeEndTokenPos()); |
4216 } | 4217 } |
4217 { | 4218 { |
(...skipping 16979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21197 return tag_label.ToCString(); | 21198 return tag_label.ToCString(); |
21198 } | 21199 } |
21199 | 21200 |
21200 | 21201 |
21201 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21202 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
21202 Instance::PrintJSONImpl(stream, ref); | 21203 Instance::PrintJSONImpl(stream, ref); |
21203 } | 21204 } |
21204 | 21205 |
21205 | 21206 |
21206 } // namespace dart | 21207 } // namespace dart |
OLD | NEW |