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

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

Issue 429013002: Make Dart_LoadLibrary and Dart_LoadSource take line and column offsets like Dart_LoadScript. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 4 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/vm/dart_api_impl_test.cc ('k') | runtime/vm/snapshot_test.cc » ('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 "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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 } 579 }
580 ASSERT((tag == Dart_kSourceTag) || (tag == Dart_kCanonicalizeUrl)); 580 ASSERT((tag == Dart_kSourceTag) || (tag == Dart_kCanonicalizeUrl));
581 if (tag == Dart_kCanonicalizeUrl) { 581 if (tag == Dart_kCanonicalizeUrl) {
582 // url is already canonicalized. 582 // url is already canonicalized.
583 return url; 583 return url;
584 } 584 }
585 Dart_Handle source = GetSource(url_string); 585 Dart_Handle source = GetSource(url_string);
586 if (Dart_IsError(source)) { 586 if (Dart_IsError(source)) {
587 return source; 587 return source;
588 } 588 }
589 return Dart_LoadSource(library, url, source); 589 return Dart_LoadSource(library, url, source, 0, 0);
590 } 590 }
591 591
592 592
593 // A handler for a per-isolate request. 593 // A handler for a per-isolate request.
594 // 594 //
595 // If a handler returns true, the reply is complete and ready to be 595 // If a handler returns true, the reply is complete and ready to be
596 // posted. If a handler returns false, then it is responsible for 596 // posted. If a handler returns false, then it is responsible for
597 // posting the reply (this can be used for asynchronous delegation of 597 // posting the reply (this can be used for asynchronous delegation of
598 // the response handling). 598 // the response handling).
599 typedef bool (*IsolateMessageHandler)(Isolate* isolate, JSONStream* stream); 599 typedef bool (*IsolateMessageHandler)(Isolate* isolate, JSONStream* stream);
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 while (current != NULL) { 2516 while (current != NULL) {
2517 if (strcmp(name, current->name()) == 0) { 2517 if (strcmp(name, current->name()) == 0) {
2518 return current; 2518 return current;
2519 } 2519 }
2520 current = current->next(); 2520 current = current->next();
2521 } 2521 }
2522 return NULL; 2522 return NULL;
2523 } 2523 }
2524 2524
2525 } // namespace dart 2525 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698