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

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

Issue 909253002: Fix a windows build issue (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/disassembler_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('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) 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/flags.h" 5 #include "vm/flags.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/json_stream.h" 8 #include "vm/json_stream.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 case kBoolean: { 48 case kBoolean: {
49 OS::Print("%s: %s (%s)\n", 49 OS::Print("%s: %s (%s)\n",
50 name_, *this->bool_ptr_ ? "true" : "false", comment_); 50 name_, *this->bool_ptr_ ? "true" : "false", comment_);
51 break; 51 break;
52 } 52 }
53 case kInteger: { 53 case kInteger: {
54 OS::Print("%s: %d (%s)\n", name_, *this->int_ptr_, comment_); 54 OS::Print("%s: %d (%s)\n", name_, *this->int_ptr_, comment_);
55 break; 55 break;
56 } 56 }
57 case kUint64: { 57 case kUint64: {
58 OS::Print("%s: %"Pu64" (%s)\n", name_, *this->uint64_ptr_, comment_); 58 OS::Print("%s: %" Pu64 " (%s)\n", name_, *this->uint64_ptr_, comment_);
59 break; 59 break;
60 } 60 }
61 case kString: { 61 case kString: {
62 if (*this->charp_ptr_ != NULL) { 62 if (*this->charp_ptr_ != NULL) {
63 OS::Print("%s: '%s' (%s)\n", name_, *this->charp_ptr_, comment_); 63 OS::Print("%s: '%s' (%s)\n", name_, *this->charp_ptr_, comment_);
64 } else { 64 } else {
65 OS::Print("%s: (null) (%s)\n", name_, comment_); 65 OS::Print("%s: (null) (%s)\n", name_, comment_);
66 } 66 }
67 break; 67 break;
68 } 68 }
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 (*flag->bool_ptr_ ? "true" : "false")); 434 (*flag->bool_ptr_ ? "true" : "false"));
435 break; 435 break;
436 } 436 }
437 case Flag::kInteger: { 437 case Flag::kInteger: {
438 jsflag.AddProperty("flagType", "int"); 438 jsflag.AddProperty("flagType", "int");
439 jsflag.AddPropertyF("valueAsString", "%d", *flag->int_ptr_); 439 jsflag.AddPropertyF("valueAsString", "%d", *flag->int_ptr_);
440 break; 440 break;
441 } 441 }
442 case Flag::kUint64: { 442 case Flag::kUint64: {
443 jsflag.AddProperty("flagType", "uint64_t"); 443 jsflag.AddProperty("flagType", "uint64_t");
444 jsflag.AddPropertyF("valueAsString", "%"Pu64, *flag->uint64_ptr_); 444 jsflag.AddPropertyF("valueAsString", "%" Pu64, *flag->uint64_ptr_);
445 break; 445 break;
446 } 446 }
447 case Flag::kString: { 447 case Flag::kString: {
448 jsflag.AddProperty("flagType", "string"); 448 jsflag.AddProperty("flagType", "string");
449 if (flag->charp_ptr_ != NULL) { 449 if (flag->charp_ptr_ != NULL) {
450 jsflag.AddPropertyF("valueAsString", "%s", *flag->charp_ptr_); 450 jsflag.AddPropertyF("valueAsString", "%s", *flag->charp_ptr_);
451 } else { 451 } else {
452 // valueAsString missing means NULL. 452 // valueAsString missing means NULL.
453 } 453 }
454 break; 454 break;
(...skipping 24 matching lines...) Expand all
479 for (intptr_t i = 0; i < num_flags_; ++i) { 479 for (intptr_t i = 0; i < num_flags_; ++i) {
480 Flag* flag = flags_[i]; 480 Flag* flag = flags_[i];
481 if (flag->changed_) { 481 if (flag->changed_) {
482 PrintFlagToJSONArray(&jsarr, flag); 482 PrintFlagToJSONArray(&jsarr, flag);
483 } 483 }
484 } 484 }
485 } 485 }
486 } 486 }
487 487
488 } // namespace dart 488 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698