| 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 "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "vm/port.h" | 25 #include "vm/port.h" |
| 26 #include "vm/profiler.h" | 26 #include "vm/profiler.h" |
| 27 #include "vm/stack_frame.h" | 27 #include "vm/stack_frame.h" |
| 28 #include "vm/symbols.h" | 28 #include "vm/symbols.h" |
| 29 #include "vm/version.h" | 29 #include "vm/version.h" |
| 30 | 30 |
| 31 | 31 |
| 32 namespace dart { | 32 namespace dart { |
| 33 | 33 |
| 34 DEFINE_FLAG(bool, trace_service, false, "Trace VM service requests."); | 34 DEFINE_FLAG(bool, trace_service, false, "Trace VM service requests."); |
| 35 DEFINE_FLAG(bool, trace_service_pause_events, false, |
| 36 "Trace VM service isolate pause events."); |
| 35 DECLARE_FLAG(bool, enable_type_checks); | 37 DECLARE_FLAG(bool, enable_type_checks); |
| 36 DECLARE_FLAG(bool, enable_asserts); | 38 DECLARE_FLAG(bool, enable_asserts); |
| 37 | 39 |
| 38 struct ResourcesEntry { | 40 struct ResourcesEntry { |
| 39 const char* path_; | 41 const char* path_; |
| 40 const char* resource_; | 42 const char* resource_; |
| 41 int length_; | 43 int length_; |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 extern ResourcesEntry __service_resources_[]; | 46 extern ResourcesEntry __service_resources_[]; |
| (...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1985 while (current != NULL) { | 1987 while (current != NULL) { |
| 1986 if (strcmp(name, current->name()) == 0) { | 1988 if (strcmp(name, current->name()) == 0) { |
| 1987 return current; | 1989 return current; |
| 1988 } | 1990 } |
| 1989 current = current->next(); | 1991 current = current->next(); |
| 1990 } | 1992 } |
| 1991 return NULL; | 1993 return NULL; |
| 1992 } | 1994 } |
| 1993 | 1995 |
| 1994 } // namespace dart | 1996 } // namespace dart |
| OLD | NEW |