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

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

Issue 2489863003: [compiler,modules] Introduce JS operators for module loads and stores. (Closed)
Patch Set: Remove unused variable. Created 4 years, 1 month 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/compiler/js-generic-lowering.h" 5 #include "src/compiler/js-generic-lowering.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 ExternalReference message_address = 618 ExternalReference message_address =
619 ExternalReference::address_of_pending_message_obj(isolate()); 619 ExternalReference::address_of_pending_message_obj(isolate());
620 node->RemoveInput(NodeProperties::FirstContextIndex(node)); 620 node->RemoveInput(NodeProperties::FirstContextIndex(node));
621 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address)); 621 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address));
622 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0)); 622 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0));
623 StoreRepresentation representation(MachineRepresentation::kTagged, 623 StoreRepresentation representation(MachineRepresentation::kTagged,
624 kNoWriteBarrier); 624 kNoWriteBarrier);
625 NodeProperties::ChangeOp(node, machine()->Store(representation)); 625 NodeProperties::ChangeOp(node, machine()->Store(representation));
626 } 626 }
627 627
628 void JSGenericLowering::LowerJSLoadModule(Node* node) {
629 UNREACHABLE(); // Eliminated in typed lowering.
630 }
631
632 void JSGenericLowering::LowerJSStoreModule(Node* node) {
633 UNREACHABLE(); // Eliminated in typed lowering.
634 }
635
628 void JSGenericLowering::LowerJSGeneratorStore(Node* node) { 636 void JSGenericLowering::LowerJSGeneratorStore(Node* node) {
629 UNREACHABLE(); // Eliminated in typed lowering. 637 UNREACHABLE(); // Eliminated in typed lowering.
630 } 638 }
631 639
632 void JSGenericLowering::LowerJSGeneratorRestoreContinuation(Node* node) { 640 void JSGenericLowering::LowerJSGeneratorRestoreContinuation(Node* node) {
633 UNREACHABLE(); // Eliminated in typed lowering. 641 UNREACHABLE(); // Eliminated in typed lowering.
634 } 642 }
635 643
636 void JSGenericLowering::LowerJSGeneratorRestoreRegister(Node* node) { 644 void JSGenericLowering::LowerJSGeneratorRestoreRegister(Node* node) {
637 UNREACHABLE(); // Eliminated in typed lowering. 645 UNREACHABLE(); // Eliminated in typed lowering.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 } 702 }
695 703
696 704
697 MachineOperatorBuilder* JSGenericLowering::machine() const { 705 MachineOperatorBuilder* JSGenericLowering::machine() const {
698 return jsgraph()->machine(); 706 return jsgraph()->machine();
699 } 707 }
700 708
701 } // namespace compiler 709 } // namespace compiler
702 } // namespace internal 710 } // namespace internal
703 } // namespace v8 711 } // 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