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

Unified Diff: runtime/vm/intermediate_language.h

Issue 914133002: VM: Fix slow-path deoptimization environment. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/flow_graph_compiler.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 43679)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -7967,6 +7967,16 @@
return fixed_parameter_count_;
}
+ intptr_t CountArgsPushed() {
+ intptr_t count = 0;
+ for (Environment::DeepIterator it(this); !it.Done(); it.Advance()) {
+ if (it.CurrentValue()->definition()->IsPushArgument()) {
+ count++;
+ }
+ }
+ return count;
+ }
+
const Code& code() const { return parsed_function_.code(); }
Environment* DeepCopy(Isolate* isolate) const {
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698