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

Unified Diff: src/compiler/js-operator.cc

Issue 1107883002: [turbofan] Add language mode to JSCallFunction operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/compiler/js-operator.h ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index 91aa271e17c3897bee7986779e4cb559a5b65951..fa866186df043e3f606942434594b0eda5835e0d 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -14,25 +14,8 @@ namespace v8 {
namespace internal {
namespace compiler {
-bool operator==(CallFunctionParameters const& lhs,
- CallFunctionParameters const& rhs) {
- return lhs.arity() == rhs.arity() && lhs.flags() == rhs.flags();
-}
-
-
-bool operator!=(CallFunctionParameters const& lhs,
- CallFunctionParameters const& rhs) {
- return !(lhs == rhs);
-}
-
-
-size_t hash_value(CallFunctionParameters const& p) {
- return base::hash_combine(p.arity(), p.flags());
-}
-
-
std::ostream& operator<<(std::ostream& os, CallFunctionParameters const& p) {
- return os << p.arity() << ", " << p.flags();
+ return os << p.arity() << ", " << p.flags() << ", " << p.language_mode();
}
@@ -354,8 +337,9 @@ CACHED_OP_LIST_WITH_LANGUAGE_MODE(CACHED_WITH_LANGUAGE_MODE)
const Operator* JSOperatorBuilder::CallFunction(size_t arity,
- CallFunctionFlags flags) {
- CallFunctionParameters parameters(arity, flags);
+ CallFunctionFlags flags,
+ LanguageMode language_mode) {
+ CallFunctionParameters parameters(arity, flags, language_mode);
return new (zone()) Operator1<CallFunctionParameters>( // --
IrOpcode::kJSCallFunction, Operator::kNoProperties, // opcode
"JSCallFunction", // name
« no previous file with comments | « src/compiler/js-operator.h ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698