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

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

Issue 1739233002: [runtime] Remove obsolete %Apply and %TailCall runtime entries. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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-intrinsic-lowering.h ('k') | src/compiler/linkage.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 case Runtime::kInlineToNumber: 88 case Runtime::kInlineToNumber:
89 return ReduceToNumber(node); 89 return ReduceToNumber(node);
90 case Runtime::kInlineToObject: 90 case Runtime::kInlineToObject:
91 return ReduceToObject(node); 91 return ReduceToObject(node);
92 case Runtime::kInlineToPrimitive: 92 case Runtime::kInlineToPrimitive:
93 return ReduceToPrimitive(node); 93 return ReduceToPrimitive(node);
94 case Runtime::kInlineToString: 94 case Runtime::kInlineToString:
95 return ReduceToString(node); 95 return ReduceToString(node);
96 case Runtime::kInlineCall: 96 case Runtime::kInlineCall:
97 return ReduceCall(node); 97 return ReduceCall(node);
98 case Runtime::kInlineTailCall:
99 return ReduceTailCall(node);
100 case Runtime::kInlineGetSuperConstructor: 98 case Runtime::kInlineGetSuperConstructor:
101 return ReduceGetSuperConstructor(node); 99 return ReduceGetSuperConstructor(node);
102 default: 100 default:
103 break; 101 break;
104 } 102 }
105 return NoChange(); 103 return NoChange();
106 } 104 }
107 105
108 106
109 Reduction JSIntrinsicLowering::ReduceCreateIterResultObject(Node* node) { 107 Reduction JSIntrinsicLowering::ReduceCreateIterResultObject(Node* node) {
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { 498 Reduction JSIntrinsicLowering::ReduceCall(Node* node) {
501 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); 499 size_t const arity = CallRuntimeParametersOf(node->op()).arity();
502 NodeProperties::ChangeOp(node, 500 NodeProperties::ChangeOp(node,
503 javascript()->CallFunction(arity, VectorSlotPair(), 501 javascript()->CallFunction(arity, VectorSlotPair(),
504 ConvertReceiverMode::kAny, 502 ConvertReceiverMode::kAny,
505 TailCallMode::kDisallow)); 503 TailCallMode::kDisallow));
506 return Changed(node); 504 return Changed(node);
507 } 505 }
508 506
509 507
510 Reduction JSIntrinsicLowering::ReduceTailCall(Node* node) {
511 size_t const arity = CallRuntimeParametersOf(node->op()).arity();
512 NodeProperties::ChangeOp(node,
513 javascript()->CallFunction(arity, VectorSlotPair(),
514 ConvertReceiverMode::kAny,
515 TailCallMode::kAllow));
516 return Changed(node);
517 }
518
519
520 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { 508 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) {
521 Node* active_function = NodeProperties::GetValueInput(node, 0); 509 Node* active_function = NodeProperties::GetValueInput(node, 0);
522 Node* effect = NodeProperties::GetEffectInput(node); 510 Node* effect = NodeProperties::GetEffectInput(node);
523 Node* control = NodeProperties::GetControlInput(node); 511 Node* control = NodeProperties::GetControlInput(node);
524 Node* active_function_map = effect = 512 Node* active_function_map = effect =
525 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()), 513 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()),
526 active_function, effect, control); 514 active_function, effect, control);
527 return Change(node, simplified()->LoadField(AccessBuilder::ForMapPrototype()), 515 return Change(node, simplified()->LoadField(AccessBuilder::ForMapPrototype()),
528 active_function_map, effect, control); 516 active_function_map, effect, control);
529 } 517 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 } 591 }
604 592
605 593
606 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { 594 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const {
607 return jsgraph()->simplified(); 595 return jsgraph()->simplified();
608 } 596 }
609 597
610 } // namespace compiler 598 } // namespace compiler
611 } // namespace internal 599 } // namespace internal
612 } // namespace v8 600 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698