Index: src/code.h |
diff --git a/src/code.h b/src/code.h |
index d0a5fec61ffc6a70494a1520022313f6121f2801..a0639e8deb8ae4e946e1e35a330aea03eee7a895 100644 |
--- a/src/code.h |
+++ b/src/code.h |
@@ -24,7 +24,8 @@ class ParameterCount BASE_EMBEDDED { |
explicit ParameterCount(int immediate) |
: reg_(no_reg), immediate_(immediate) { } |
explicit ParameterCount(Handle<JSFunction> f) |
- : reg_(no_reg), immediate_(f->shared()->formal_parameter_count()) { } |
+ : reg_(no_reg), |
+ immediate_(f->shared()->internal_formal_parameter_count()) {} |
bool is_reg() const { return !reg_.is(no_reg); } |
bool is_immediate() const { return !is_reg(); } |