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

Unified Diff: runtime/lib/math.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
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | runtime/vm/object.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/math.cc
diff --git a/runtime/lib/math.cc b/runtime/lib/math.cc
index 8e5e750cd1fc6440760fcb697391a55a71366b31..0199782bdfa6ecd0ca9f0f3a276c71bd784a77d6 100644
--- a/runtime/lib/math.cc
+++ b/runtime/lib/math.cc
@@ -79,7 +79,7 @@ DEFINE_NATIVE_ENTRY(Math_doublePow, 2) {
static RawTypedData* GetRandomStateArray(const Instance& receiver) {
const Class& random_class = Class::Handle(receiver.clazz());
const Field& state_field =
- Field::Handle(random_class.LookupField(Symbols::_state()));
+ Field::Handle(random_class.LookupFieldAllowPrivate(Symbols::_state()));
ASSERT(!state_field.IsNull());
const Instance& state_field_value =
Instance::Cast(Object::Handle(receiver.GetField(state_field)));
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698