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_; } |