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

Side by Side Diff: runtime/vm/service.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
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 "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 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 } 2383 }
2384 if (js->HasParam("endTokenPos")) { 2384 if (js->HasParam("endTokenPos")) {
2385 js->PrintError( 2385 js->PrintError(
2386 kInvalidParams, 2386 kInvalidParams,
2387 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter", 2387 "%s: the 'endTokenPos' parameter requires the 'scriptId' parameter",
2388 js->method()); 2388 js->method());
2389 return true; 2389 return true;
2390 } 2390 }
2391 } 2391 }
2392 SourceReport report(report_set, compile_mode); 2392 SourceReport report(report_set, compile_mode);
2393 report.PrintJSON(js, script, start_pos, end_pos); 2393 report.PrintJSON(js,
2394 script,
2395 TokenDescriptor(start_pos),
2396 TokenDescriptor(end_pos));
2394 return true; 2397 return true;
2395 } 2398 }
2396 2399
2397 2400
2398 static const MethodParameter* get_call_site_data_params[] = { 2401 static const MethodParameter* get_call_site_data_params[] = {
2399 ISOLATE_PARAMETER, 2402 ISOLATE_PARAMETER,
2400 new IdParameter("targetId", false), 2403 new IdParameter("targetId", false),
2401 NULL, 2404 NULL,
2402 }; 2405 };
2403 2406
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
3866 const ServiceMethodDescriptor& method = service_methods_[i]; 3869 const ServiceMethodDescriptor& method = service_methods_[i];
3867 if (strcmp(method_name, method.name) == 0) { 3870 if (strcmp(method_name, method.name) == 0) {
3868 return &method; 3871 return &method;
3869 } 3872 }
3870 } 3873 }
3871 return NULL; 3874 return NULL;
3872 } 3875 }
3873 3876
3874 3877
3875 } // namespace dart 3878 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698