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

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

Issue 2342303003: Fix Windows build (Closed)
Patch Set: Created 4 years, 3 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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 return Api::ClassId(object) == kApiErrorCid; 763 return Api::ClassId(object) == kApiErrorCid;
764 } 764 }
765 765
766 766
767 DART_EXPORT bool Dart_IsUnhandledExceptionError(Dart_Handle object) { 767 DART_EXPORT bool Dart_IsUnhandledExceptionError(Dart_Handle object) {
768 return Api::ClassId(object) == kUnhandledExceptionCid; 768 return Api::ClassId(object) == kUnhandledExceptionCid;
769 } 769 }
770 770
771 771
772 DART_EXPORT bool Dart_IsCompilationError(Dart_Handle object) { 772 DART_EXPORT bool Dart_IsCompilationError(Dart_Handle object) {
773 if (Dart_IsUnhandledExceptionError(object)) { 773 if (::Dart_IsUnhandledExceptionError(object)) {
774 DARTSCOPE(Thread::Current()); 774 DARTSCOPE(Thread::Current());
775 const UnhandledException& error = 775 const UnhandledException& error =
776 UnhandledException::Cast(Object::Handle(Z, Api::UnwrapHandle(object))); 776 UnhandledException::Cast(Object::Handle(Z, Api::UnwrapHandle(object)));
777 const Instance& exc = Instance::Handle(Z, error.exception()); 777 const Instance& exc = Instance::Handle(Z, error.exception());
778 return IsCompiletimeErrorObject(Z, exc); 778 return IsCompiletimeErrorObject(Z, exc);
779 } 779 }
780 return Api::ClassId(object) == kLanguageErrorCid; 780 return Api::ClassId(object) == kLanguageErrorCid;
781 } 781 }
782 782
783 783
(...skipping 5816 matching lines...) Expand 10 before | Expand all | Expand 10 after
6600 6600
6601 DART_EXPORT bool Dart_IsPrecompiledRuntime() { 6601 DART_EXPORT bool Dart_IsPrecompiledRuntime() {
6602 #if defined(DART_PRECOMPILED_RUNTIME) 6602 #if defined(DART_PRECOMPILED_RUNTIME)
6603 return true; 6603 return true;
6604 #else 6604 #else
6605 return false; 6605 return false;
6606 #endif 6606 #endif
6607 } 6607 }
6608 6608
6609 } // namespace dart 6609 } // 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