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

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

Issue 2289613002: [turbofan] Remove special JSForInStep and JSForInDone. (Closed)
Patch Set: 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/bytecode-graph-builder.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 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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 NodeProperties::ChangeOp(node, common()->Call(desc)); 567 NodeProperties::ChangeOp(node, common()->Call(desc));
568 } 568 }
569 569
570 570
571 void JSGenericLowering::LowerJSCallRuntime(Node* node) { 571 void JSGenericLowering::LowerJSCallRuntime(Node* node) {
572 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); 572 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
573 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); 573 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity()));
574 } 574 }
575 575
576 576
577 void JSGenericLowering::LowerJSForInDone(Node* node) {
578 ReplaceWithRuntimeCall(node, Runtime::kForInDone);
579 }
580
581
582 void JSGenericLowering::LowerJSForInNext(Node* node) { 577 void JSGenericLowering::LowerJSForInNext(Node* node) {
583 ReplaceWithRuntimeCall(node, Runtime::kForInNext); 578 ReplaceWithRuntimeCall(node, Runtime::kForInNext);
584 } 579 }
585 580
586 581
587 void JSGenericLowering::LowerJSForInPrepare(Node* node) { 582 void JSGenericLowering::LowerJSForInPrepare(Node* node) {
588 ReplaceWithRuntimeCall(node, Runtime::kForInPrepare); 583 ReplaceWithRuntimeCall(node, Runtime::kForInPrepare);
589 } 584 }
590 585
591
592 void JSGenericLowering::LowerJSForInStep(Node* node) {
593 ReplaceWithRuntimeCall(node, Runtime::kForInStep);
594 }
595
596
597 void JSGenericLowering::LowerJSLoadMessage(Node* node) { 586 void JSGenericLowering::LowerJSLoadMessage(Node* node) {
598 ExternalReference message_address = 587 ExternalReference message_address =
599 ExternalReference::address_of_pending_message_obj(isolate()); 588 ExternalReference::address_of_pending_message_obj(isolate());
600 node->RemoveInput(NodeProperties::FirstContextIndex(node)); 589 node->RemoveInput(NodeProperties::FirstContextIndex(node));
601 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address)); 590 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address));
602 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0)); 591 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0));
603 NodeProperties::ChangeOp(node, machine()->Load(MachineType::AnyTagged())); 592 NodeProperties::ChangeOp(node, machine()->Load(MachineType::AnyTagged()));
604 } 593 }
605 594
606 595
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 } 673 }
685 674
686 675
687 MachineOperatorBuilder* JSGenericLowering::machine() const { 676 MachineOperatorBuilder* JSGenericLowering::machine() const {
688 return jsgraph()->machine(); 677 return jsgraph()->machine();
689 } 678 }
690 679
691 } // namespace compiler 680 } // namespace compiler
692 } // namespace internal 681 } // namespace internal
693 } // namespace v8 682 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698