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

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

Issue 507063002: Did you mean const? (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_optimizer.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 17985 matching lines...) Expand 10 before | Expand all | Expand 10 after
17996 const char* Bool::ToCString() const { 17996 const char* Bool::ToCString() const {
17997 return value() ? "true" : "false"; 17997 return value() ? "true" : "false";
17998 } 17998 }
17999 17999
18000 18000
18001 void Bool::PrintJSONImpl(JSONStream* stream, bool ref) const { 18001 void Bool::PrintJSONImpl(JSONStream* stream, bool ref) const {
18002 const char* str = ToCString(); 18002 const char* str = ToCString();
18003 JSONObject jsobj(stream); 18003 JSONObject jsobj(stream);
18004 jsobj.AddProperty("type", JSONType(ref)); 18004 jsobj.AddProperty("type", JSONType(ref));
18005 jsobj.AddPropertyF("id", "objects/bool-%s", str); 18005 jsobj.AddPropertyF("id", "objects/bool-%s", str);
18006 class Class& cls = Class::Handle(this->clazz()); 18006 const Class& cls = Class::Handle(this->clazz());
18007 jsobj.AddProperty("class", cls); 18007 jsobj.AddProperty("class", cls);
18008 jsobj.AddPropertyF("valueAsString", "%s", str); 18008 jsobj.AddPropertyF("valueAsString", "%s", str);
18009 } 18009 }
18010 18010
18011 18011
18012 bool Array::CanonicalizeEquals(const Instance& other) const { 18012 bool Array::CanonicalizeEquals(const Instance& other) const {
18013 if (this->raw() == other.raw()) { 18013 if (this->raw() == other.raw()) {
18014 // Both handles point to the same raw instance. 18014 // Both handles point to the same raw instance.
18015 return true; 18015 return true;
18016 } 18016 }
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
19573 return tag_label.ToCString(); 19573 return tag_label.ToCString();
19574 } 19574 }
19575 19575
19576 19576
19577 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 19577 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
19578 Instance::PrintJSONImpl(stream, ref); 19578 Instance::PrintJSONImpl(stream, ref);
19579 } 19579 }
19580 19580
19581 19581
19582 } // namespace dart 19582 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698