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

Unified Diff: src/hydrogen.h

Issue 9750007: Use correct arguments adaptation environment when inlining function containing arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/compiler/inline-arguments.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 7262299c9a335ddd6029bf3215877cc427f481b8..e2779bb2260d10cfed8b0a048dd641b685e4cba6 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -400,6 +400,10 @@ class HEnvironment: public ZoneObject {
return outer;
}
+ HEnvironment* arguments_environment() {
+ return outer()->frame_type() == ARGUMENTS_ADAPTOR ? outer() : this;
+ }
+
// Simple accessors.
Handle<JSFunction> closure() const { return closure_; }
const ZoneList<HValue*>* values() const { return &values_; }
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/compiler/inline-arguments.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698