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

Unified Diff: runtime/vm/object.h

Issue 1850653003: Provide ability to patch external functions in a class that has already been finalized. The follow… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review Created 4 years, 9 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/dart_api_impl_test.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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 8a818f64b0353bc2ddc39183286d0f73890a9f79..5f2692a08fd984cd28c61a39401bdf7412ae022a 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1265,6 +1265,12 @@ class Class : public Object {
void set_is_prefinalized() const;
+ bool is_refinalize_after_patch() const {
+ return ClassFinalizedBits::decode(raw_ptr()->state_bits_)
+ == RawClass::kRefinalizeAfterPatch;
+ }
+
+ void SetRefinalizeAfterPatch() const;
void ResetFinalization() const;
bool is_marked_for_parsing() const {
@@ -1378,6 +1384,8 @@ class Class : public Object {
bool TraceAllocation(Isolate* isolate) const;
void SetTraceAllocation(bool trace_allocation) const;
+ bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const;
+
private:
enum MemberKind {
kAny = 0,
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698