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

Unified Diff: runtime/lib/mirrors.cc

Issue 1289643005: Rename accessors of class Field to make it more apparent as to what is being accessed - static fiel… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add-comment Created 5 years, 3 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/vm/ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index c1a869a0cd19f3be9bcdcb879d442bea7f7076b8..65f7c62a632144bc2546d5bed4871b517e0a4a85 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -602,7 +602,7 @@ static void VerifyMethodKindShifts() {
#define CHECK_KIND_SHIFT(name) \
field = cls.LookupField(String::Handle(String::New(#name))); \
ASSERT(!field.IsNull()); \
- value ^= field.value(); \
+ value ^= field.StaticValue(); \
ASSERT(value.Value() == Mirrors::name);
MIRRORS_KIND_SHIFT_LIST(CHECK_KIND_SHIFT)
#undef CHECK_KIND_SHIFT
@@ -677,7 +677,7 @@ static RawInstance* InvokeLibraryGetter(const Library& library,
}
} else {
if (!field.IsUninitialized()) {
- return field.value();
+ return field.StaticValue();
}
// An uninitialized field was found. Check for a getter in the field's
// owner classs.
@@ -754,7 +754,7 @@ static RawInstance* InvokeClassGetter(const Class& klass,
DartEntry::InvokeFunction(getter, Object::empty_array()));
return ReturnResult(result);
}
- return field.value();
+ return field.StaticValue();
}
@@ -1620,7 +1620,7 @@ DEFINE_NATIVE_ENTRY(ClassMirror_invokeSetter, 4) {
UNREACHABLE();
}
- field.set_value(value);
+ field.SetStaticValue(value);
return value.raw();
}
@@ -1917,7 +1917,7 @@ DEFINE_NATIVE_ENTRY(LibraryMirror_invokeSetter, 4) {
UNREACHABLE();
}
- field.set_value(value);
+ field.SetStaticValue(value);
return value.raw();
}
« no previous file with comments | « no previous file | runtime/vm/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698