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

Unified Diff: src/hydrogen-instructions.h

Issue 9265004: Support inlining at call-sites with mismatched number of arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 5082e4d3ff038b938868559af6ecb1724811e0d3..779dbddd57b8c870f19c34f7e8dedddadcb38f1c 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -1312,9 +1312,11 @@ class HStackCheck: public HTemplateInstruction<1> {
class HEnterInlined: public HTemplateInstruction<0> {
public:
HEnterInlined(Handle<JSFunction> closure,
+ int arguments,
Kevin Millikin (Chromium) 2012/01/19 10:26:34 Make it sound like a number: "argument_count_" or
FunctionLiteral* function,
CallKind call_kind)
: closure_(closure),
+ arguments_(arguments),
function_(function),
call_kind_(call_kind) {
}
@@ -1322,6 +1324,7 @@ class HEnterInlined: public HTemplateInstruction<0> {
virtual void PrintDataTo(StringStream* stream);
Handle<JSFunction> closure() const { return closure_; }
+ int arguments() const { return arguments_; }
FunctionLiteral* function() const { return function_; }
CallKind call_kind() const { return call_kind_; }
@@ -1333,6 +1336,7 @@ class HEnterInlined: public HTemplateInstruction<0> {
private:
Handle<JSFunction> closure_;
+ int arguments_;
FunctionLiteral* function_;
CallKind call_kind_;
};
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698