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

Unified Diff: src/code-stubs.h

Issue 1688283003: [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes comments I missed in last patch. Created 4 years, 10 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/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 8d270d4fca6849f70373753676e69ea9ad6431ee..d376a038c79701e7c6c8c2d40e96781076a24c28 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -952,9 +952,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_));

Powered by Google App Engine
This is Rietveld 408576698