| 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
| 8 | 8 |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
| (...skipping 5214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5225 Dart_Handle source, | 5225 Dart_Handle source, |
| 5226 intptr_t line_offset, | 5226 intptr_t line_offset, |
| 5227 intptr_t column_offset) { | 5227 intptr_t column_offset) { |
| 5228 API_TIMELINE_DURATION; | 5228 API_TIMELINE_DURATION; |
| 5229 DARTSCOPE(Thread::Current()); | 5229 DARTSCOPE(Thread::Current()); |
| 5230 Isolate* I = T->isolate(); | 5230 Isolate* I = T->isolate(); |
| 5231 const String& url_str = Api::UnwrapStringHandle(Z, url); | 5231 const String& url_str = Api::UnwrapStringHandle(Z, url); |
| 5232 if (url_str.IsNull()) { | 5232 if (url_str.IsNull()) { |
| 5233 RETURN_TYPE_ERROR(Z, url, String); | 5233 RETURN_TYPE_ERROR(Z, url, String); |
| 5234 } | 5234 } |
| 5235 if (Dart_IsNull(resolved_url)) { | 5235 if (::Dart_IsNull(resolved_url)) { |
| 5236 resolved_url = url; | 5236 resolved_url = url; |
| 5237 } | 5237 } |
| 5238 const String& resolved_url_str = Api::UnwrapStringHandle(Z, resolved_url); | 5238 const String& resolved_url_str = Api::UnwrapStringHandle(Z, resolved_url); |
| 5239 if (resolved_url_str.IsNull()) { | 5239 if (resolved_url_str.IsNull()) { |
| 5240 RETURN_TYPE_ERROR(Z, resolved_url, String); | 5240 RETURN_TYPE_ERROR(Z, resolved_url, String); |
| 5241 } | 5241 } |
| 5242 const String& source_str = Api::UnwrapStringHandle(Z, source); | 5242 const String& source_str = Api::UnwrapStringHandle(Z, source); |
| 5243 if (source_str.IsNull()) { | 5243 if (source_str.IsNull()) { |
| 5244 RETURN_TYPE_ERROR(Z, source, String); | 5244 RETURN_TYPE_ERROR(Z, source, String); |
| 5245 } | 5245 } |
| (...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6554 | 6554 |
| 6555 DART_EXPORT bool Dart_IsPrecompiledRuntime() { | 6555 DART_EXPORT bool Dart_IsPrecompiledRuntime() { |
| 6556 #if defined(DART_PRECOMPILED_RUNTIME) | 6556 #if defined(DART_PRECOMPILED_RUNTIME) |
| 6557 return true; | 6557 return true; |
| 6558 #else | 6558 #else |
| 6559 return false; | 6559 return false; |
| 6560 #endif | 6560 #endif |
| 6561 } | 6561 } |
| 6562 | 6562 |
| 6563 } // namespace dart | 6563 } // namespace dart |
| OLD | NEW |