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

Unified Diff: vm/object.h

Issue 9252033: Improve compilation times for swarm application startup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 | « no previous file | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.h
===================================================================
--- vm/object.h (revision 3413)
+++ vm/object.h (working copy)
@@ -1248,6 +1248,45 @@
bool IsAbstract() const {
return kind() == RawFunction::kAbstract;
}
+ bool IsDynamicFunction() const {
+ if (is_static()) {
+ return false;
+ }
+ switch (kind()) {
+ case RawFunction::kFunction:
+ case RawFunction::kGetterFunction:
+ case RawFunction::kSetterFunction:
+ case RawFunction::kImplicitGetter:
+ case RawFunction::kImplicitSetter:
+ return true;
+ case RawFunction::kConstructor:
+ case RawFunction::kConstImplicitGetter:
+ case RawFunction::kAbstract:
+ return false;
+ default:
+ UNREACHABLE();
+ return false;
+ }
+ }
+ bool IsStaticFunction() const {
+ if (!is_static()) {
+ return false;
+ }
+ switch (kind()) {
+ case RawFunction::kFunction:
+ case RawFunction::kGetterFunction:
+ case RawFunction::kSetterFunction:
+ case RawFunction::kImplicitGetter:
+ case RawFunction::kImplicitSetter:
+ case RawFunction::kConstImplicitGetter:
+ return true;
+ case RawFunction::kConstructor:
+ return false;
+ default:
+ UNREACHABLE();
+ return false;
+ }
+ }
bool IsInFactoryScope() const;
intptr_t token_index() const { return raw_ptr()->token_index_; }
@@ -3417,7 +3456,7 @@
vm_isolate_heap->Contains(reinterpret_cast<uword>(raw_->ptr())));
#endif
set_vtable((raw_ == null_) ?
- handle_vtable_ : raw_->ptr()->class_->ptr()->handle_vtable_);
+ handle_vtable_ : raw_->ptr()->class_->ptr()->handle_vtable_);
}
« no previous file with comments | « no previous file | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698