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 2911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2922 } else { | 2922 } else { |
2923 PrintInvalidParamError(js, "step"); | 2923 PrintInvalidParamError(js, "step"); |
2924 return true; | 2924 return true; |
2925 } | 2925 } |
2926 } | 2926 } |
2927 isolate->SetResumeRequest(); | 2927 isolate->SetResumeRequest(); |
2928 PrintSuccess(js); | 2928 PrintSuccess(js); |
2929 return true; | 2929 return true; |
2930 } | 2930 } |
2931 | 2931 |
2932 js->PrintError(kVMMustBePaused, NULL); | 2932 js->PrintError(kIsolateMustBePaused, NULL); |
2933 return true; | 2933 return true; |
2934 } | 2934 } |
2935 | 2935 |
2936 | 2936 |
2937 static const MethodParameter* pause_params[] = { | 2937 static const MethodParameter* pause_params[] = { |
2938 RUNNABLE_ISOLATE_PARAMETER, | 2938 RUNNABLE_ISOLATE_PARAMETER, |
2939 NULL, | 2939 NULL, |
2940 }; | 2940 }; |
2941 | 2941 |
2942 | 2942 |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3979 if (strcmp(method_name, method.name) == 0) { | 3979 if (strcmp(method_name, method.name) == 0) { |
3980 return &method; | 3980 return &method; |
3981 } | 3981 } |
3982 } | 3982 } |
3983 return NULL; | 3983 return NULL; |
3984 } | 3984 } |
3985 | 3985 |
3986 #endif // !PRODUCT | 3986 #endif // !PRODUCT |
3987 | 3987 |
3988 } // namespace dart | 3988 } // namespace dart |
OLD | NEW |