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

Unified Diff: runtime/lib/mirrors.cc

Issue 1722733002: In background compilation make a copy of Field in order to freeze its state (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: s Created 4 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 | « no previous file | runtime/vm/assembler_arm.cc » ('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 e1d5ba9674dfab02b2ea114d982e37fb56d057d4..aaa28e187a4fd5feb5e023269db83ec0a27a2af9 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -689,7 +689,7 @@ static RawInstance* InvokeLibraryGetter(const Library& library,
}
// An uninitialized field was found. Check for a getter in the field's
// owner classs.
- const Class& klass = Class::Handle(field.owner());
+ const Class& klass = Class::Handle(field.Owner());
const String& internal_getter_name =
String::Handle(Field::GetterName(getter_name));
getter = klass.LookupStaticFunction(internal_getter_name);
@@ -883,7 +883,7 @@ DEFINE_NATIVE_ENTRY(DeclarationMirror_metadata, 1) {
klass = Function::Cast(decl).origin();
library = klass.library();
} else if (decl.IsField()) {
- klass = Field::Cast(decl).origin();
+ klass = Field::Cast(decl).Origin();
library = klass.library();
} else if (decl.IsLibrary()) {
library ^= decl.raw();
@@ -1993,7 +1993,7 @@ DEFINE_NATIVE_ENTRY(DeclarationMirror_location, 1) {
token_pos = cls.token_pos();
} else if (decl.IsField()) {
const Field& field = Field::Cast(decl);
- script = field.script();
+ script = field.Script();
token_pos = field.token_pos();
} else if (decl.IsTypeParameter()) {
const TypeParameter& type_var = TypeParameter::Cast(decl);
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698