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

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

Issue 2196593003: More fixes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « runtime/bin/builtin.dart ('k') | no next file » | 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 "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 5500 matching lines...) Expand 10 before | Expand all | Expand 10 after
5511 Dart_Handle source, 5511 Dart_Handle source,
5512 intptr_t line_offset, 5512 intptr_t line_offset,
5513 intptr_t column_offset) { 5513 intptr_t column_offset) {
5514 API_TIMELINE_DURATION; 5514 API_TIMELINE_DURATION;
5515 DARTSCOPE(Thread::Current()); 5515 DARTSCOPE(Thread::Current());
5516 Isolate* I = T->isolate(); 5516 Isolate* I = T->isolate();
5517 const String& url_str = Api::UnwrapStringHandle(Z, url); 5517 const String& url_str = Api::UnwrapStringHandle(Z, url);
5518 if (url_str.IsNull()) { 5518 if (url_str.IsNull()) {
5519 RETURN_TYPE_ERROR(Z, url, String); 5519 RETURN_TYPE_ERROR(Z, url, String);
5520 } 5520 }
5521 if (Dart_IsNull(resolved_url)) { 5521 if (::Dart_IsNull(resolved_url)) {
5522 resolved_url = url; 5522 resolved_url = url;
5523 } 5523 }
5524 const String& resolved_url_str = Api::UnwrapStringHandle(Z, resolved_url); 5524 const String& resolved_url_str = Api::UnwrapStringHandle(Z, resolved_url);
5525 if (resolved_url_str.IsNull()) { 5525 if (resolved_url_str.IsNull()) {
5526 RETURN_TYPE_ERROR(Z, resolved_url, String); 5526 RETURN_TYPE_ERROR(Z, resolved_url, String);
5527 } 5527 }
5528 const String& source_str = Api::UnwrapStringHandle(Z, source); 5528 const String& source_str = Api::UnwrapStringHandle(Z, source);
5529 if (source_str.IsNull()) { 5529 if (source_str.IsNull()) {
5530 RETURN_TYPE_ERROR(Z, source, String); 5530 RETURN_TYPE_ERROR(Z, source, String);
5531 } 5531 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
5630 DARTSCOPE(Thread::Current()); 5630 DARTSCOPE(Thread::Current());
5631 Isolate* I = T->isolate(); 5631 Isolate* I = T->isolate();
5632 const Library& lib = Api::UnwrapLibraryHandle(Z, library); 5632 const Library& lib = Api::UnwrapLibraryHandle(Z, library);
5633 if (lib.IsNull()) { 5633 if (lib.IsNull()) {
5634 RETURN_TYPE_ERROR(Z, library, Library); 5634 RETURN_TYPE_ERROR(Z, library, Library);
5635 } 5635 }
5636 const String& url_str = Api::UnwrapStringHandle(Z, url); 5636 const String& url_str = Api::UnwrapStringHandle(Z, url);
5637 if (url_str.IsNull()) { 5637 if (url_str.IsNull()) {
5638 RETURN_TYPE_ERROR(Z, url, String); 5638 RETURN_TYPE_ERROR(Z, url, String);
5639 } 5639 }
5640 if (Dart_IsNull(resolved_url)) { 5640 if (::Dart_IsNull(resolved_url)) {
5641 resolved_url = url; 5641 resolved_url = url;
5642 } 5642 }
5643 const String& resolved_url_str = Api::UnwrapStringHandle(Z, resolved_url); 5643 const String& resolved_url_str = Api::UnwrapStringHandle(Z, resolved_url);
5644 if (resolved_url_str.IsNull()) { 5644 if (resolved_url_str.IsNull()) {
5645 RETURN_TYPE_ERROR(Z, resolved_url, String); 5645 RETURN_TYPE_ERROR(Z, resolved_url, String);
5646 } 5646 }
5647 const String& source_str = Api::UnwrapStringHandle(Z, source); 5647 const String& source_str = Api::UnwrapStringHandle(Z, source);
5648 if (source_str.IsNull()) { 5648 if (source_str.IsNull()) {
5649 RETURN_TYPE_ERROR(Z, source, String); 5649 RETURN_TYPE_ERROR(Z, source, String);
5650 } 5650 }
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « runtime/bin/builtin.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698