Index: src/code.h |
diff --git a/src/code.h b/src/code.h |
index 766c932e0f6182697670996180f5f66829751245..791420cf399d58e558f6dce95b098ecb1a21a7f1 100644 |
--- a/src/code.h |
+++ b/src/code.h |
@@ -29,6 +29,8 @@ |
#define V8_CODE_H_ |
#include "allocation.h" |
+#include "handles.h" |
+#include "objects.h" |
namespace v8 { |
namespace internal { |
@@ -44,6 +46,8 @@ class ParameterCount BASE_EMBEDDED { |
: reg_(reg), immediate_(0) { } |
explicit ParameterCount(int immediate) |
: reg_(no_reg), immediate_(immediate) { } |
+ explicit ParameterCount(Handle<JSFunction> f) |
+ : reg_(no_reg), immediate_(f->shared()->formal_parameter_count()) { } |
bool is_reg() const { return !reg_.is(no_reg); } |
bool is_immediate() const { return !is_reg(); } |