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

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

Issue 2223863003: Fix Windows build (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 | « no previous file | 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 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 1452
1453 DART_EXPORT void Dart_SetStickyError(Dart_Handle error) { 1453 DART_EXPORT void Dart_SetStickyError(Dart_Handle error) {
1454 Thread* thread = Thread::Current(); 1454 Thread* thread = Thread::Current();
1455 DARTSCOPE(thread); 1455 DARTSCOPE(thread);
1456 Isolate* isolate = thread->isolate(); 1456 Isolate* isolate = thread->isolate();
1457 CHECK_ISOLATE(isolate); 1457 CHECK_ISOLATE(isolate);
1458 NoSafepointScope no_safepoint_scope; 1458 NoSafepointScope no_safepoint_scope;
1459 if (isolate->sticky_error() != Error::null()) { 1459 if (isolate->sticky_error() != Error::null()) {
1460 FATAL1("%s expects there to be no sticky error.", CURRENT_FUNC); 1460 FATAL1("%s expects there to be no sticky error.", CURRENT_FUNC);
1461 } 1461 }
1462 if (!Dart_IsUnhandledExceptionError(error)) { 1462 if (!::Dart_IsUnhandledExceptionError(error)) {
1463 FATAL1("%s expects the error to be an unhandled exception error.", 1463 FATAL1("%s expects the error to be an unhandled exception error.",
1464 CURRENT_FUNC); 1464 CURRENT_FUNC);
1465 } 1465 }
1466 isolate->SetStickyError( 1466 isolate->SetStickyError(
1467 Api::UnwrapErrorHandle(Z, error).raw()); 1467 Api::UnwrapErrorHandle(Z, error).raw());
1468 } 1468 }
1469 1469
1470 1470
1471 DART_EXPORT bool Dart_HasStickyError() { 1471 DART_EXPORT bool Dart_HasStickyError() {
1472 Isolate* isolate = Isolate::Current(); 1472 Isolate* isolate = Isolate::Current();
(...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6588 6588
6589 DART_EXPORT bool Dart_IsPrecompiledRuntime() { 6589 DART_EXPORT bool Dart_IsPrecompiledRuntime() {
6590 #if defined(DART_PRECOMPILED_RUNTIME) 6590 #if defined(DART_PRECOMPILED_RUNTIME)
6591 return true; 6591 return true;
6592 #else 6592 #else
6593 return false; 6593 return false;
6594 #endif 6594 #endif
6595 } 6595 }
6596 6596
6597 } // namespace dart 6597 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698