Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index f370ce64735e994c84591d0316967d45c1cd9cd8..4edbc9998aaad67f96a2566600c9014b61e7a4c4 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -974,9 +974,13 @@ class CallICStub: public PlatformCodeStub { |
} |
protected: |
- int arg_count() const { return state().argc(); } |
+ int arg_count() const { |
+ DCHECK(!argc_in_register()); |
+ return state().argc(); |
+ } |
ConvertReceiverMode convert_mode() const { return state().convert_mode(); } |
TailCallMode tail_call_mode() const { return state().tail_call_mode(); } |
+ bool argc_in_register() const { return state().argc_in_register(); } |
CallICState state() const { |
return CallICState(static_cast<ExtraICState>(minor_key_)); |