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

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

Issue 2194973004: Fix build. Fix tests. (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/vmservice/loader.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 5214 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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/vmservice/loader.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698