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

Unified Diff: src/ic/ic-state.h

Issue 1407373007: Remove CallFunctionStub, always call through the Call builtin (also from CallIC) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic-state.h
diff --git a/src/ic/ic-state.h b/src/ic/ic-state.h
index 6d014d1ca4e6f5a0576c74b233098af850fca7a4..442e87c179598a46f8c0de7038e045ee0e2ba9e9 100644
--- a/src/ic/ic-state.h
+++ b/src/ic/ic-state.h
@@ -23,12 +23,7 @@ class ICUtility : public AllStatic {
class CallICState final BASE_EMBEDDED {
public:
- explicit CallICState(ExtraICState extra_ic_state);
-
- enum CallType { METHOD, FUNCTION };
-
- CallICState(int argc, CallType call_type)
- : argc_(argc), call_type_(call_type) {}
+ explicit CallICState(int argc) : argc_(argc) {}
ExtraICState GetExtraICState() const;
@@ -37,16 +32,11 @@ class CallICState final BASE_EMBEDDED {
const CallICState&));
int arg_count() const { return argc_; }
- CallType call_type() const { return call_type_; }
-
- bool CallAsMethod() const { return call_type_ == METHOD; }
private:
class ArgcBits : public BitField<int, 0, Code::kArgumentsBits> {};
- class CallTypeBits : public BitField<CallType, Code::kArgumentsBits, 1> {};
const int argc_;
- const CallType call_type_;
};
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698