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

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

Issue 2005723004: Fraction class prototype and test (not to be committed). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: work in progress Created 4 years, 5 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/object.cc ('k') | runtime/vm/object_store.h » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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/debugger.h" 5 #include "vm/debugger.h"
6 #include "vm/disassembler.h" 6 #include "vm/disassembler.h"
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/object_store.h" 8 #include "vm/object_store.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 jsobj.AddServiceId(*this); 1250 jsobj.AddServiceId(*this);
1251 jsobj.AddProperty("valueAsString", ToCString()); 1251 jsobj.AddProperty("valueAsString", ToCString());
1252 } 1252 }
1253 1253
1254 1254
1255 void Bigint::PrintJSONImpl(JSONStream* stream, bool ref) const { 1255 void Bigint::PrintJSONImpl(JSONStream* stream, bool ref) const {
1256 Integer::PrintJSONImpl(stream, ref); 1256 Integer::PrintJSONImpl(stream, ref);
1257 } 1257 }
1258 1258
1259 1259
1260 void Fraction::PrintJSONImpl(JSONStream* stream, bool ref) const {
1261 UNIMPLEMENTED();
1262 }
1263
1264
1260 void String::PrintJSONImpl(JSONStream* stream, bool ref) const { 1265 void String::PrintJSONImpl(JSONStream* stream, bool ref) const {
1261 JSONObject jsobj(stream); 1266 JSONObject jsobj(stream);
1262 if (raw() == Symbols::OptimizedOut().raw()) { 1267 if (raw() == Symbols::OptimizedOut().raw()) {
1263 // TODO(turnidge): This is a hack. The user could have this 1268 // TODO(turnidge): This is a hack. The user could have this
1264 // special string in their program. Fixing this involves updating 1269 // special string in their program. Fixing this involves updating
1265 // the debugging api a bit. 1270 // the debugging api a bit.
1266 jsobj.AddProperty("type", "Sentinel"); 1271 jsobj.AddProperty("type", "Sentinel");
1267 jsobj.AddProperty("kind", "OptimizedOut"); 1272 jsobj.AddProperty("kind", "OptimizedOut");
1268 jsobj.AddProperty("valueAsString", "<optimized out>"); 1273 jsobj.AddProperty("valueAsString", "<optimized out>");
1269 return; 1274 return;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 jsobj.AddProperty("mirrorReferent", referent_handle); 1602 jsobj.AddProperty("mirrorReferent", referent_handle);
1598 } 1603 }
1599 1604
1600 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1605 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1601 Instance::PrintJSONImpl(stream, ref); 1606 Instance::PrintJSONImpl(stream, ref);
1602 } 1607 }
1603 1608
1604 #endif 1609 #endif
1605 1610
1606 } // namespace dart 1611 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698