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

Unified Diff: runtime/vm/isolate.h

Issue 2392613002: Reapply "Lazy deopt without code patching." (Closed)
Patch Set: . Created 4 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/intermediate_language_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 12dd5fa2f6fdcc37fd861a2de0c6adc4eb08164f..61a04e2206af9b7ad309f0f0d4ac069c57c2dfd0 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -19,6 +19,7 @@
#include "vm/os_thread.h"
#include "vm/timer.h"
#include "vm/token_position.h"
+#include "vm/growable_array.h"
namespace dart {
@@ -70,6 +71,19 @@ class ThreadRegistry;
class UserTag;
+class PendingLazyDeopt {
+ public:
+ PendingLazyDeopt(uword fp, uword pc) : fp_(fp), pc_(pc) { }
+ uword fp() { return fp_; }
+ uword pc() { return pc_; }
+ void set_pc(uword pc) { pc_ = pc; }
+
+ private:
+ uword fp_;
+ uword pc_;
+};
+
+
class IsolateVisitor {
public:
IsolateVisitor() {}
@@ -390,6 +404,9 @@ class Isolate : public BaseIsolate {
return object_id_ring_;
}
+ MallocGrowableArray<PendingLazyDeopt>* pending_deopts() {
+ return pending_deopts_;
+ }
bool IsDeoptimizing() const { return deopt_context_ != NULL; }
DeoptContext* deopt_context() const { return deopt_context_; }
void set_deopt_context(DeoptContext* value) {
@@ -740,6 +757,7 @@ class Isolate : public BaseIsolate {
Dart_GcPrologueCallback gc_prologue_callback_;
Dart_GcEpilogueCallback gc_epilogue_callback_;
intptr_t defer_finalization_count_;
+ MallocGrowableArray<PendingLazyDeopt>* pending_deopts_;
DeoptContext* deopt_context_;
bool is_service_isolate_;
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698