| 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 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
| 9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 10 | 10 |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 if (strcmp(parts[2], "closures") == 0) { | 1257 if (strcmp(parts[2], "closures") == 0) { |
| 1258 // Closure ids look like: "classes/17/closures/11" | 1258 // Closure ids look like: "classes/17/closures/11" |
| 1259 if (num_parts != 4) { | 1259 if (num_parts != 4) { |
| 1260 return Object::sentinel().raw(); | 1260 return Object::sentinel().raw(); |
| 1261 } | 1261 } |
| 1262 intptr_t id; | 1262 intptr_t id; |
| 1263 if (!GetIntegerId(parts[3], &id)) { | 1263 if (!GetIntegerId(parts[3], &id)) { |
| 1264 return Object::sentinel().raw(); | 1264 return Object::sentinel().raw(); |
| 1265 } | 1265 } |
| 1266 Function& func = Function::Handle(zone); | 1266 Function& func = Function::Handle(zone); |
| 1267 func ^= cls.ClosureFunctionFromIndex(id); | 1267 func ^= isolate->ClosureFunctionFromIndex(id); |
| 1268 if (func.IsNull()) { | 1268 if (func.IsNull()) { |
| 1269 return Object::sentinel().raw(); | 1269 return Object::sentinel().raw(); |
| 1270 } | 1270 } |
| 1271 return func.raw(); | 1271 return func.raw(); |
| 1272 | 1272 |
| 1273 } else if (strcmp(parts[2], "fields") == 0) { | 1273 } else if (strcmp(parts[2], "fields") == 0) { |
| 1274 // Field ids look like: "classes/17/fields/11" | 1274 // Field ids look like: "classes/17/fields/11" |
| 1275 if (num_parts != 4) { | 1275 if (num_parts != 4) { |
| 1276 return Object::sentinel().raw(); | 1276 return Object::sentinel().raw(); |
| 1277 } | 1277 } |
| (...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3511 ServiceMethodDescriptor& method = service_methods_[i]; | 3511 ServiceMethodDescriptor& method = service_methods_[i]; |
| 3512 if (strcmp(method_name, method.name) == 0) { | 3512 if (strcmp(method_name, method.name) == 0) { |
| 3513 return &method; | 3513 return &method; |
| 3514 } | 3514 } |
| 3515 } | 3515 } |
| 3516 return NULL; | 3516 return NULL; |
| 3517 } | 3517 } |
| 3518 | 3518 |
| 3519 | 3519 |
| 3520 } // namespace dart | 3520 } // namespace dart |
| OLD | NEW |