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

Unified Diff: runtime/vm/intermediate_language.h

Issue 1992963002: Enable optimizer pipeline for DBC. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/instructions_dbc.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index bf0e180487acd119a8e76a11f3a4d255d963d6ae..be04e5ee8a165bf3efe1b739be0077332a1df452 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -8194,6 +8194,17 @@ class Environment : public ZoneAllocated {
// from the copy.
Environment* DeepCopy(Zone* zone, intptr_t length) const;
+#if defined(TARGET_ARCH_DBC)
+ // Return/ReturnTOS instruction drops incoming arguments so
+ // we have to drop outgoing arguments from the innermost environment.
+ // On all other architectures caller drops outgoing arguments itself
+ // hence the difference.
+ // Note: this method can only be used at the code generation stage because
+ // it mutates environment in unsafe way (e.g. does not update def-use
+ // chains).
+ void DropArguments(intptr_t argc);
+#endif
+
private:
friend class ShallowIterator;
« no previous file with comments | « runtime/vm/instructions_dbc.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698