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

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

Issue 1709493002: [turbofan] Remove language mode from JSCall operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_strong-remove-2
Patch Set: Rebased. 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 unified diff | Download patch
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.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 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 492
493 493
494 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { 494 Reduction JSIntrinsicLowering::ReduceToString(Node* node) {
495 NodeProperties::ChangeOp(node, javascript()->ToString()); 495 NodeProperties::ChangeOp(node, javascript()->ToString());
496 return Changed(node); 496 return Changed(node);
497 } 497 }
498 498
499 499
500 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { 500 Reduction JSIntrinsicLowering::ReduceCall(Node* node) {
501 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); 501 size_t const arity = CallRuntimeParametersOf(node->op()).arity();
502 NodeProperties::ChangeOp( 502 NodeProperties::ChangeOp(node,
503 node, javascript()->CallFunction(arity, STRICT, VectorSlotPair(), 503 javascript()->CallFunction(arity, VectorSlotPair(),
504 ConvertReceiverMode::kAny, 504 ConvertReceiverMode::kAny,
505 TailCallMode::kDisallow)); 505 TailCallMode::kDisallow));
506 return Changed(node); 506 return Changed(node);
507 } 507 }
508 508
509 509
510 Reduction JSIntrinsicLowering::ReduceTailCall(Node* node) { 510 Reduction JSIntrinsicLowering::ReduceTailCall(Node* node) {
511 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); 511 size_t const arity = CallRuntimeParametersOf(node->op()).arity();
512 NodeProperties::ChangeOp( 512 NodeProperties::ChangeOp(node,
513 node, javascript()->CallFunction(arity, STRICT, VectorSlotPair(), 513 javascript()->CallFunction(arity, VectorSlotPair(),
514 ConvertReceiverMode::kAny, 514 ConvertReceiverMode::kAny,
515 TailCallMode::kAllow)); 515 TailCallMode::kAllow));
516 return Changed(node); 516 return Changed(node);
517 } 517 }
518 518
519 519
520 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { 520 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) {
521 Node* active_function = NodeProperties::GetValueInput(node, 0); 521 Node* active_function = NodeProperties::GetValueInput(node, 0);
522 Node* effect = NodeProperties::GetEffectInput(node); 522 Node* effect = NodeProperties::GetEffectInput(node);
523 Node* control = NodeProperties::GetControlInput(node); 523 Node* control = NodeProperties::GetControlInput(node);
524 Node* active_function_map = effect = 524 Node* active_function_map = effect =
525 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()), 525 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()),
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 } 603 }
604 604
605 605
606 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { 606 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const {
607 return jsgraph()->simplified(); 607 return jsgraph()->simplified();
608 } 608 }
609 609
610 } // namespace compiler 610 } // namespace compiler
611 } // namespace internal 611 } // namespace internal
612 } // namespace v8 612 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698