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

Unified Diff: runtime/vm/object.h

Issue 9233039: Store resolved library prefix in unresolved class object in order not to repeat (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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/code_generator_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 3699)
+++ runtime/vm/object.h (working copy)
@@ -721,7 +721,9 @@
// to a class after all classes have been loaded and finalized.
class UnresolvedClass : public Object {
public:
- RawString* qualifier() const { return raw_ptr()->qualifier_; }
+ RawLibraryPrefix* library_prefix() const {
+ return raw_ptr()->library_prefix_;
+ }
RawString* ident() const { return raw_ptr()->ident_; }
intptr_t token_index() const { return raw_ptr()->token_index_; }
@@ -736,13 +738,13 @@
return RoundedAllocationSize(sizeof(RawUnresolvedClass));
}
static RawUnresolvedClass* New(intptr_t token_index,
- const String& qualifier,
+ const LibraryPrefix& library_prefix,
const String& ident);
private:
void set_token_index(intptr_t token_index) const;
void set_ident(const String& ident) const;
- void set_qualifier(const String& qualifier) const;
+ void set_library_prefix(const LibraryPrefix& library_prefix) const;
static RawUnresolvedClass* New();
@@ -933,9 +935,6 @@
// The finalized type of the given non-parameterized class.
static RawType* NewNonParameterizedType(const Class& type_class);
- static RawType* NewParameterizedType(
- const Object& type_class, const AbstractTypeArguments& arguments);
-
static RawType* New(const Object& clazz,
const AbstractTypeArguments& arguments);
« no previous file with comments | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698