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

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

Issue 1486923005: Fix tests (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | 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 7557 matching lines...) Expand 10 before | Expand all | Expand 10 after
7568 const char* cls_name = String::Handle(cls.Name()).ToCString(); 7568 const char* cls_name = String::Handle(cls.Name()).ToCString();
7569 return OS::SCreate(Thread::Current()->zone(), 7569 return OS::SCreate(Thread::Current()->zone(),
7570 "Field <%s.%s>:%s%s%s", cls_name, field_name, kF0, kF1, kF2); 7570 "Field <%s.%s>:%s%s%s", cls_name, field_name, kF0, kF1, kF2);
7571 } 7571 }
7572 7572
7573 7573
7574 void Field::PrintJSONImpl(JSONStream* stream, bool ref) const { 7574 void Field::PrintJSONImpl(JSONStream* stream, bool ref) const {
7575 JSONObject jsobj(stream); 7575 JSONObject jsobj(stream);
7576 Class& cls = Class::Handle(owner()); 7576 Class& cls = Class::Handle(owner());
7577 String& field_name = String::Handle(name()); 7577 String& field_name = String::Handle(name());
7578 ASSERT(cls.LookupField(field_name) == this->raw());
7579 field_name = String::EncodeIRI(field_name); 7578 field_name = String::EncodeIRI(field_name);
7580 AddCommonObjectProperties(&jsobj, "Field", ref); 7579 AddCommonObjectProperties(&jsobj, "Field", ref);
7581 jsobj.AddFixedServiceId("classes/%" Pd "/fields/%s", 7580 jsobj.AddFixedServiceId("classes/%" Pd "/fields/%s",
7582 cls.id(), field_name.ToCString()); 7581 cls.id(), field_name.ToCString());
7583 7582
7584 const String& user_name = String::Handle(PrettyName()); 7583 const String& user_name = String::Handle(PrettyName());
7585 const String& vm_name = String::Handle(name()); 7584 const String& vm_name = String::Handle(name());
7586 AddNameProperties(&jsobj, user_name, vm_name); 7585 AddNameProperties(&jsobj, user_name, vm_name);
7587 if (cls.IsTopLevel()) { 7586 if (cls.IsTopLevel()) {
7588 const Library& library = Library::Handle(cls.library()); 7587 const Library& library = Library::Handle(cls.library());
(...skipping 14334 matching lines...) Expand 10 before | Expand all | Expand 10 after
21923 return tag_label.ToCString(); 21922 return tag_label.ToCString();
21924 } 21923 }
21925 21924
21926 21925
21927 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21926 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21928 Instance::PrintJSONImpl(stream, ref); 21927 Instance::PrintJSONImpl(stream, ref);
21929 } 21928 }
21930 21929
21931 21930
21932 } // namespace dart 21931 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698