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

Side by Side Diff: src/compiler/js-typed-lowering.cc

Issue 2666783007: [turbo] Rename CallFunction* JSOperators to Call*. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « src/compiler/js-typed-lowering.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/js-typed-lowering.h" 5 #include "src/compiler/js-typed-lowering.h"
6 6
7 #include "src/ast/modules.h" 7 #include "src/ast/modules.h"
8 #include "src/builtins/builtins-utils.h" 8 #include "src/builtins/builtins-utils.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compilation-dependencies.h" 10 #include "src/compilation-dependencies.h"
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 NodeProperties::ChangeOp( 2045 NodeProperties::ChangeOp(
2046 node, 2046 node,
2047 common()->Call(Linkage::GetStubCallDescriptor( 2047 common()->Call(Linkage::GetStubCallDescriptor(
2048 isolate(), graph()->zone(), callable.descriptor(), 1, flags))); 2048 isolate(), graph()->zone(), callable.descriptor(), 1, flags)));
2049 return Changed(node); 2049 return Changed(node);
2050 } 2050 }
2051 2051
2052 return NoChange(); 2052 return NoChange();
2053 } 2053 }
2054 2054
2055 Reduction JSTypedLowering::ReduceJSCallFunction(Node* node) { 2055 Reduction JSTypedLowering::ReduceJSCall(Node* node) {
2056 DCHECK_EQ(IrOpcode::kJSCallFunction, node->opcode()); 2056 DCHECK_EQ(IrOpcode::kJSCall, node->opcode());
2057 CallFunctionParameters const& p = CallFunctionParametersOf(node->op()); 2057 CallParameters const& p = CallParametersOf(node->op());
2058 int const arity = static_cast<int>(p.arity() - 2); 2058 int const arity = static_cast<int>(p.arity() - 2);
2059 ConvertReceiverMode convert_mode = p.convert_mode(); 2059 ConvertReceiverMode convert_mode = p.convert_mode();
2060 Node* target = NodeProperties::GetValueInput(node, 0); 2060 Node* target = NodeProperties::GetValueInput(node, 0);
2061 Type* target_type = NodeProperties::GetType(target); 2061 Type* target_type = NodeProperties::GetType(target);
2062 Node* receiver = NodeProperties::GetValueInput(node, 1); 2062 Node* receiver = NodeProperties::GetValueInput(node, 1);
2063 Type* receiver_type = NodeProperties::GetType(receiver); 2063 Type* receiver_type = NodeProperties::GetType(receiver);
2064 Node* effect = NodeProperties::GetEffectInput(node); 2064 Node* effect = NodeProperties::GetEffectInput(node);
2065 Node* control = NodeProperties::GetControlInput(node); 2065 Node* control = NodeProperties::GetControlInput(node);
2066 Node* frame_state = NodeProperties::FindFrameStateBefore(node); 2066 Node* frame_state = NodeProperties::FindFrameStateBefore(node);
2067 2067
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 NodeProperties::ChangeOp( 2156 NodeProperties::ChangeOp(
2157 node, common()->Call(Linkage::GetStubCallDescriptor( 2157 node, common()->Call(Linkage::GetStubCallDescriptor(
2158 isolate(), graph()->zone(), callable.descriptor(), 1 + arity, 2158 isolate(), graph()->zone(), callable.descriptor(), 1 + arity,
2159 flags))); 2159 flags)));
2160 return Changed(node); 2160 return Changed(node);
2161 } 2161 }
2162 2162
2163 // Maybe we did at least learn something about the {receiver}. 2163 // Maybe we did at least learn something about the {receiver}.
2164 if (p.convert_mode() != convert_mode) { 2164 if (p.convert_mode() != convert_mode) {
2165 NodeProperties::ChangeOp( 2165 NodeProperties::ChangeOp(
2166 node, javascript()->CallFunction(p.arity(), p.frequency(), p.feedback(), 2166 node,
2167 convert_mode, p.tail_call_mode())); 2167 javascript()->Call(p.arity(), p.frequency(), p.feedback(), convert_mode,
2168 p.tail_call_mode()));
2168 return Changed(node); 2169 return Changed(node);
2169 } 2170 }
2170 2171
2171 return NoChange(); 2172 return NoChange();
2172 } 2173 }
2173 2174
2174 2175
2175 Reduction JSTypedLowering::ReduceJSForInNext(Node* node) { 2176 Reduction JSTypedLowering::ReduceJSForInNext(Node* node) {
2176 DCHECK_EQ(IrOpcode::kJSForInNext, node->opcode()); 2177 DCHECK_EQ(IrOpcode::kJSForInNext, node->opcode());
2177 Node* receiver = NodeProperties::GetValueInput(node, 0); 2178 Node* receiver = NodeProperties::GetValueInput(node, 0);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2409 case IrOpcode::kJSLoadModule: 2410 case IrOpcode::kJSLoadModule:
2410 return ReduceJSLoadModule(node); 2411 return ReduceJSLoadModule(node);
2411 case IrOpcode::kJSStoreModule: 2412 case IrOpcode::kJSStoreModule:
2412 return ReduceJSStoreModule(node); 2413 return ReduceJSStoreModule(node);
2413 case IrOpcode::kJSConvertReceiver: 2414 case IrOpcode::kJSConvertReceiver:
2414 return ReduceJSConvertReceiver(node); 2415 return ReduceJSConvertReceiver(node);
2415 case IrOpcode::kJSConstruct: 2416 case IrOpcode::kJSConstruct:
2416 return ReduceJSConstruct(node); 2417 return ReduceJSConstruct(node);
2417 case IrOpcode::kJSCallForwardVarargs: 2418 case IrOpcode::kJSCallForwardVarargs:
2418 return ReduceJSCallForwardVarargs(node); 2419 return ReduceJSCallForwardVarargs(node);
2419 case IrOpcode::kJSCallFunction: 2420 case IrOpcode::kJSCall:
2420 return ReduceJSCallFunction(node); 2421 return ReduceJSCall(node);
2421 case IrOpcode::kJSForInNext: 2422 case IrOpcode::kJSForInNext:
2422 return ReduceJSForInNext(node); 2423 return ReduceJSForInNext(node);
2423 case IrOpcode::kJSLoadMessage: 2424 case IrOpcode::kJSLoadMessage:
2424 return ReduceJSLoadMessage(node); 2425 return ReduceJSLoadMessage(node);
2425 case IrOpcode::kJSStoreMessage: 2426 case IrOpcode::kJSStoreMessage:
2426 return ReduceJSStoreMessage(node); 2427 return ReduceJSStoreMessage(node);
2427 case IrOpcode::kJSGeneratorStore: 2428 case IrOpcode::kJSGeneratorStore:
2428 return ReduceJSGeneratorStore(node); 2429 return ReduceJSGeneratorStore(node);
2429 case IrOpcode::kJSGeneratorRestoreContinuation: 2430 case IrOpcode::kJSGeneratorRestoreContinuation:
2430 return ReduceJSGeneratorRestoreContinuation(node); 2431 return ReduceJSGeneratorRestoreContinuation(node);
(...skipping 29 matching lines...) Expand all
2460 } 2461 }
2461 2462
2462 2463
2463 CompilationDependencies* JSTypedLowering::dependencies() const { 2464 CompilationDependencies* JSTypedLowering::dependencies() const {
2464 return dependencies_; 2465 return dependencies_;
2465 } 2466 }
2466 2467
2467 } // namespace compiler 2468 } // namespace compiler
2468 } // namespace internal 2469 } // namespace internal
2469 } // namespace v8 2470 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698