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

Unified Diff: runtime/vm/thread.h

Issue 1409173002: More work for background compilation; move pending_functions_ from ObjectStore to Thread. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 2 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
Index: runtime/vm/thread.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index 5ab7f7d04ccc2785a7bdcfa6181573d664e540e8..66d6c252b10cfa358bfabb56baf4b75ab3d9e575 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -35,6 +35,7 @@ class PcDescriptors;
class RawBool;
class RawObject;
class RawCode;
+class RawGrowableObjectArray;
class RawString;
class RuntimeEntry;
class StackResource;
@@ -405,6 +406,8 @@ LEAF_RUNTIME_ENTRY_LIST(DEFINE_OFFSET_METHOD)
REUSABLE_HANDLE_LIST(REUSABLE_HANDLE)
#undef REUSABLE_HANDLE
+ RawGrowableObjectArray* pending_functions();
+
void VisitObjectPointers(ObjectPointerVisitor* visitor);
private:
@@ -421,8 +424,6 @@ LEAF_RUNTIME_ENTRY_LIST(DEFINE_OFFSET_METHOD)
Mutex timeline_block_lock_;
StoreBufferBlock* store_buffer_block_;
class Log* log_;
- intptr_t deopt_id_; // Compilation specific counter.
- uword vm_tag_;
#define DECLARE_MEMBERS(type_name, member_name, expr, default_init_value) \
type_name member_name;
CACHED_CONSTANTS_LIST(DECLARE_MEMBERS)
@@ -453,7 +454,12 @@ LEAF_RUNTIME_ENTRY_LIST(DECLARE_MEMBERS)
VMHandles reusable_handles_;
+ // Compiler state:
CHA* cha_;
+ intptr_t deopt_id_; // Compilation specific counter.
+ uword vm_tag_;
+ RawGrowableObjectArray* pending_functions_;
+
int32_t no_callback_scope_depth_;
// All |Thread|s are registered in the thread list.
@@ -469,9 +475,7 @@ LEAF_RUNTIME_ENTRY_LIST(DECLARE_MEMBERS)
void InitVMConstants();
- void ClearState() {
- memset(&state_, 0, sizeof(state_));
- }
+ void ClearState();
void StoreBufferRelease(
StoreBuffer::ThresholdPolicy policy = StoreBuffer::kCheckThreshold);
« runtime/vm/compiler.cc ('K') | « runtime/vm/parser.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698