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

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: Better code. 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index f1ff75eda7fa4cb721f45002c3e948d09f5c03c4..61acb3240c3f810d474336ac3ed3d742c1da2d8d 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;
@@ -404,6 +405,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)
TimelineEventBlock* timeline_block_;
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);
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698