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

Unified Diff: runtime/vm/object.cc

Issue 2683633005: Add exception handler cache to isolate (Closed)
Patch Set: s/HandlerInfo/ExceptionHandlerInfo 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index d48e22f0eabf636aa3ec226a31b1771cd54b1461..54802f89e9546f886b83193718f591154b8ec309 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -12384,7 +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 =
+ ExceptionHandlerInfo* 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 <=
@@ -12396,9 +12396,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,
+ ExceptionHandlerInfo* info) const {
ASSERT((try_index >= 0) && (try_index < num_entries()));
ASSERT(info != NULL);
*info = raw_ptr()->data()[try_index];
@@ -12508,7 +12507,7 @@ const char* ExceptionHandlers::ToCString() const {
}
Array& handled_types = Array::Handle();
Type& type = Type::Handle();
- RawExceptionHandlers::HandlerInfo info;
+ ExceptionHandlerInfo info;
// First compute the buffer size required.
intptr_t len = 1; // Trailing '\0'.
for (intptr_t i = 0; i < num_entries(); i++) {
« no previous file with comments | « 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