| 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 "bin/vmservice_impl.h" | 5 #include "bin/vmservice_impl.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "bin/builtin.h" | 9 #include "bin/builtin.h" |
| 10 #include "bin/dartutils.h" | 10 #include "bin/dartutils.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 Dart_ShutdownIsolate(); \ | 40 Dart_ShutdownIsolate(); \ |
| 41 return false; \ | 41 return false; \ |
| 42 } | 42 } |
| 43 | 43 |
| 44 #define kLibraryResourceNamePrefix "/vmservice" | 44 #define kLibraryResourceNamePrefix "/vmservice" |
| 45 static const char* kVMServiceIOLibraryScriptResourceName = | 45 static const char* kVMServiceIOLibraryScriptResourceName = |
| 46 kLibraryResourceNamePrefix "/vmservice_io.dart"; | 46 kLibraryResourceNamePrefix "/vmservice_io.dart"; |
| 47 static const char* kVMServiceLibraryName = | 47 static const char* kVMServiceLibraryName = |
| 48 kLibraryResourceNamePrefix "/vmservice.dart"; | 48 kLibraryResourceNamePrefix "/vmservice.dart"; |
| 49 | 49 |
| 50 #define kClientResourceNamePrefix "/vmservice/client/out/web" | 50 #define kClientResourceNamePrefix "/vmservice/client/deployed/web" |
| 51 | 51 |
| 52 Dart_Isolate VmService::isolate_ = NULL; | 52 Dart_Isolate VmService::isolate_ = NULL; |
| 53 Dart_Port VmService::port_ = ILLEGAL_PORT; | 53 Dart_Port VmService::port_ = ILLEGAL_PORT; |
| 54 dart::Monitor* VmService::monitor_ = NULL; | 54 dart::Monitor* VmService::monitor_ = NULL; |
| 55 const char* VmService::error_msg_ = NULL; | 55 const char* VmService::error_msg_ = NULL; |
| 56 | 56 |
| 57 // These must be kept in sync with vmservice/constants.dart | 57 // These must be kept in sync with vmservice/constants.dart |
| 58 #define VM_SERVICE_ISOLATE_STARTUP_MESSAGE_ID 1 | 58 #define VM_SERVICE_ISOLATE_STARTUP_MESSAGE_ID 1 |
| 59 #define VM_SERVICE_ISOLATE_SHUTDOWN_MESSAGE_ID 2 | 59 #define VM_SERVICE_ISOLATE_SHUTDOWN_MESSAGE_ID 2 |
| 60 | 60 |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 if (!strcmp(function_name, entry.name) && | 554 if (!strcmp(function_name, entry.name) && |
| 555 (num_arguments == entry.num_arguments)) { | 555 (num_arguments == entry.num_arguments)) { |
| 556 return entry.function; | 556 return entry.function; |
| 557 } | 557 } |
| 558 } | 558 } |
| 559 return NULL; | 559 return NULL; |
| 560 } | 560 } |
| 561 | 561 |
| 562 } // namespace bin | 562 } // namespace bin |
| 563 } // namespace dart | 563 } // namespace dart |
| OLD | NEW |