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

Side by Side Diff: runtime/bin/vmservice_impl.cc

Issue 27530002: Reorganize VM Service client (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/bin/vmservice/gen_resources_sources.sh ('k') | runtime/tools/create_resources.py » ('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) 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
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" 50 #define kClientResourceNamePrefix "/vmservice/client/out/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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 if (!strcmp(function_name, entry.name) && 519 if (!strcmp(function_name, entry.name) &&
520 (num_arguments == entry.num_arguments)) { 520 (num_arguments == entry.num_arguments)) {
521 return entry.function; 521 return entry.function;
522 } 522 }
523 } 523 }
524 return NULL; 524 return NULL;
525 } 525 }
526 526
527 } // namespace bin 527 } // namespace bin
528 } // namespace dart 528 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/gen_resources_sources.sh ('k') | runtime/tools/create_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698