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

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

Issue 2330883002: [turbofan] Call frequencies for JSCallFunction and JSCallConstruct. (Closed)
Patch Set: Rebase onto the correct CL. Created 4 years, 3 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-inlining-heuristic.cc ('k') | src/compiler/js-native-context-specialization.cc » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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-intrinsic-lowering.h" 5 #include "src/compiler/js-intrinsic-lowering.h"
6 6
7 #include <stack> 7 #include <stack>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 296
297 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { 297 Reduction JSIntrinsicLowering::ReduceToString(Node* node) {
298 NodeProperties::ChangeOp(node, javascript()->ToString()); 298 NodeProperties::ChangeOp(node, javascript()->ToString());
299 return Changed(node); 299 return Changed(node);
300 } 300 }
301 301
302 302
303 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { 303 Reduction JSIntrinsicLowering::ReduceCall(Node* node) {
304 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); 304 size_t const arity = CallRuntimeParametersOf(node->op()).arity();
305 NodeProperties::ChangeOp(node, 305 NodeProperties::ChangeOp(
306 javascript()->CallFunction(arity, VectorSlotPair(), 306 node, javascript()->CallFunction(arity, 0.0f, VectorSlotPair(),
307 ConvertReceiverMode::kAny, 307 ConvertReceiverMode::kAny,
308 TailCallMode::kDisallow)); 308 TailCallMode::kDisallow));
309 return Changed(node); 309 return Changed(node);
310 } 310 }
311 311
312 Reduction JSIntrinsicLowering::ReduceNewObject(Node* node) { 312 Reduction JSIntrinsicLowering::ReduceNewObject(Node* node) {
313 return Change(node, CodeFactory::FastNewObject(isolate()), 0); 313 return Change(node, CodeFactory::FastNewObject(isolate()), 0);
314 } 314 }
315 315
316 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { 316 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) {
317 Node* active_function = NodeProperties::GetValueInput(node, 0); 317 Node* active_function = NodeProperties::GetValueInput(node, 0);
318 Node* effect = NodeProperties::GetEffectInput(node); 318 Node* effect = NodeProperties::GetEffectInput(node);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 return jsgraph_->javascript(); 386 return jsgraph_->javascript();
387 } 387 }
388 388
389 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { 389 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const {
390 return jsgraph()->simplified(); 390 return jsgraph()->simplified();
391 } 391 }
392 392
393 } // namespace compiler 393 } // namespace compiler
394 } // namespace internal 394 } // namespace internal
395 } // namespace v8 395 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining-heuristic.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698