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

Unified Diff: runtime/vm/raw_object.h

Issue 8501034: Deal with unhandled exceptions the same way in all Dart api functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 1469)
+++ runtime/vm/raw_object.h (working copy)
@@ -37,7 +37,7 @@
V(Context) \
V(ContextScope) \
V(UnhandledException) \
- V(ApiFailure) \
+ V(ApiError) \
V(Instance) \
V(Number) \
V(Integer) \
@@ -591,15 +591,15 @@
};
-class RawApiFailure : public RawObject {
- RAW_HEAP_OBJECT_IMPLEMENTATION(ApiFailure);
+class RawApiError : public RawObject {
+ RAW_HEAP_OBJECT_IMPLEMENTATION(ApiError);
RawObject** from() {
- return reinterpret_cast<RawObject**>(&ptr()->message_);
+ return reinterpret_cast<RawObject**>(&ptr()->data_);
}
- RawString* message_;
+ RawObject* data_;
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->message_);
+ return reinterpret_cast<RawObject**>(&ptr()->data_);
}
};
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698