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

Unified Diff: runtime/vm/exceptions.cc

Issue 1868803002: Use symbols when looking up fields in a class (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/exceptions.cc
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc
index e2fa84e5de257b8ab4ce9ffa99bc395a877e3bc2..4e8b6fb9dca678975761f5e293d0a3292b145cd3 100644
--- a/runtime/vm/exceptions.cc
+++ b/runtime/vm/exceptions.cc
@@ -270,7 +270,8 @@ static RawField* LookupStacktraceField(const Instance& instance) {
AbstractType& type = AbstractType::Handle(zone, AbstractType::null());
while (true) {
if (test_class.raw() == error_class.raw()) {
- return error_class.LookupInstanceField(Symbols::_stackTrace());
+ return error_class.LookupInstanceFieldAllowPrivate(
+ Symbols::_stackTrace());
}
type = test_class.super_type();
if (type.IsNull()) return Field::null();
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/guard_field_test.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698