| 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 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1997 } | 1997 } |
| 1998 const char* bpt_id = js->LookupParam("breakpointId"); | 1998 const char* bpt_id = js->LookupParam("breakpointId"); |
| 1999 SourceBreakpoint* bpt = LookupBreakpoint(isolate, bpt_id); | 1999 SourceBreakpoint* bpt = LookupBreakpoint(isolate, bpt_id); |
| 2000 if (bpt == NULL) { | 2000 if (bpt == NULL) { |
| 2001 fprintf(stderr, "ERROR1"); | 2001 fprintf(stderr, "ERROR1"); |
| 2002 PrintInvalidParamError(js, "breakpointId"); | 2002 PrintInvalidParamError(js, "breakpointId"); |
| 2003 return true; | 2003 return true; |
| 2004 } | 2004 } |
| 2005 isolate->debugger()->RemoveBreakpoint(bpt->id()); | 2005 isolate->debugger()->RemoveBreakpoint(bpt->id()); |
| 2006 | 2006 |
| 2007 fprintf(stderr, "SUCCESS"); | |
| 2008 // TODO(turnidge): Consider whether the 'Success' type is proper. | 2007 // TODO(turnidge): Consider whether the 'Success' type is proper. |
| 2009 JSONObject jsobj(js); | 2008 JSONObject jsobj(js); |
| 2010 jsobj.AddProperty("type", "Success"); | 2009 jsobj.AddProperty("type", "Success"); |
| 2011 jsobj.AddProperty("id", ""); | 2010 jsobj.AddProperty("id", ""); |
| 2012 return true; | 2011 return true; |
| 2013 } | 2012 } |
| 2014 | 2013 |
| 2015 | 2014 |
| 2016 static RawClass* GetMetricsClass(Isolate* isolate) { | 2015 static RawClass* GetMetricsClass(Isolate* isolate) { |
| 2017 const Library& prof_lib = | 2016 const Library& prof_lib = |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2863 while (current != NULL) { | 2862 while (current != NULL) { |
| 2864 if (strcmp(name, current->name()) == 0) { | 2863 if (strcmp(name, current->name()) == 0) { |
| 2865 return current; | 2864 return current; |
| 2866 } | 2865 } |
| 2867 current = current->next(); | 2866 current = current->next(); |
| 2868 } | 2867 } |
| 2869 return NULL; | 2868 return NULL; |
| 2870 } | 2869 } |
| 2871 | 2870 |
| 2872 } // namespace dart | 2871 } // namespace dart |
| OLD | NEW |