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

Unified Diff: runtime/vm/object.cc

Issue 2683633005: Add exception handler cache to isolate (Closed)
Patch Set: Add exception handler cache to isolate Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 8df9f9333e007d2bbbb11a80e977f1c75be8093a..597ec81f7aa0bb8043b7ad0f42728c765fe200c5 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -12384,8 +12384,7 @@ void ExceptionHandlers::SetHandlerInfo(intptr_t try_index,
bool has_catch_all) const {
ASSERT((try_index >= 0) && (try_index < num_entries()));
NoSafepointScope no_safepoint;
- RawExceptionHandlers::HandlerInfo* info =
- UnsafeMutableNonPointer(&raw_ptr()->data()[try_index]);
+ HandlerInfo* info = UnsafeMutableNonPointer(&raw_ptr()->data()[try_index]);
info->outer_try_index = outer_try_index;
// Some C compilers warn about the comparison always being true when using <=
// due to limited range of data type.
@@ -12396,9 +12395,8 @@ void ExceptionHandlers::SetHandlerInfo(intptr_t try_index,
info->has_catch_all = has_catch_all;
}
-void ExceptionHandlers::GetHandlerInfo(
- intptr_t try_index,
- RawExceptionHandlers::HandlerInfo* info) const {
+void ExceptionHandlers::GetHandlerInfo(intptr_t try_index,
+ HandlerInfo* info) const {
ASSERT((try_index >= 0) && (try_index < num_entries()));
ASSERT(info != NULL);
*info = raw_ptr()->data()[try_index];
@@ -12508,7 +12506,7 @@ const char* ExceptionHandlers::ToCString() const {
}
Array& handled_types = Array::Handle();
Type& type = Type::Handle();
- RawExceptionHandlers::HandlerInfo info;
+ HandlerInfo info;
// First compute the buffer size required.
intptr_t len = 1; // Trailing '\0'.
for (intptr_t i = 0; i < num_entries(); i++) {
« runtime/vm/isolate.h ('K') | « runtime/vm/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698