| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/service.h" | 5 #include "vm/service.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/coverage.h" | 10 #include "vm/coverage.h" |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 | 824 |
| 825 static bool HandleObjects(Isolate* isolate, JSONStream* js) { | 825 static bool HandleObjects(Isolate* isolate, JSONStream* js) { |
| 826 REQUIRE_COLLECTION_ID("objects"); | 826 REQUIRE_COLLECTION_ID("objects"); |
| 827 ASSERT(js->num_arguments() >= 2); | 827 ASSERT(js->num_arguments() >= 2); |
| 828 const char* arg = js->GetArgument(1); | 828 const char* arg = js->GetArgument(1); |
| 829 | 829 |
| 830 // TODO(turnidge): Handle <optimized out> the same way as other | 830 // TODO(turnidge): Handle <optimized out> the same way as other |
| 831 // special nulls. | 831 // special nulls. |
| 832 if (strcmp(arg, "null") == 0 || | 832 if (strcmp(arg, "null") == 0 || |
| 833 strcmp(arg, "not-initialized") == 0 || | 833 strcmp(arg, "not-initialized") == 0 || |
| 834 strcmp(arg, "being-initialized") == 0) { | 834 strcmp(arg, "being-initialized") == 0 || |
| 835 strcmp(arg, "optimized-out") == 0) { |
| 835 Object::null_object().PrintToJSONStream(js, false); | 836 Object::null_object().PrintToJSONStream(js, false); |
| 836 return true; | 837 return true; |
| 837 | 838 |
| 838 } else if (strcmp(arg, "int") == 0) { | 839 } else if (strcmp(arg, "int") == 0) { |
| 839 if (js->num_arguments() < 3) { | 840 if (js->num_arguments() < 3) { |
| 840 PrintError(js, "expected 3 arguments but found %" Pd "\n", | 841 PrintError(js, "expected 3 arguments but found %" Pd "\n", |
| 841 js->num_arguments()); | 842 js->num_arguments()); |
| 842 return true; | 843 return true; |
| 843 } | 844 } |
| 844 int64_t value = 0; | 845 int64_t value = 0; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 return entry.handler; | 1151 return entry.handler; |
| 1151 } | 1152 } |
| 1152 } | 1153 } |
| 1153 if (FLAG_trace_service) { | 1154 if (FLAG_trace_service) { |
| 1154 OS::Print("Service has no root message handler for <%s>\n", command); | 1155 OS::Print("Service has no root message handler for <%s>\n", command); |
| 1155 } | 1156 } |
| 1156 return NULL; | 1157 return NULL; |
| 1157 } | 1158 } |
| 1158 | 1159 |
| 1159 } // namespace dart | 1160 } // namespace dart |
| OLD | NEW |