| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |