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

Unified Diff: src/compiler/js-generic-lowering.cc

Issue 1412443010: [turbofan] Switch message object manipulation to JSOperator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-generic-lowering.cc
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
index 540f024e5ffa07ca8a2b988663e190636d3d8b71..8c363d3e8b6e5c07bc03a8bdcf18d1c23a9fa93f 100644
--- a/src/compiler/js-generic-lowering.cc
+++ b/src/compiler/js-generic-lowering.cc
@@ -772,6 +772,27 @@ void JSGenericLowering::LowerJSForInStep(Node* node) {
}
+void JSGenericLowering::LowerJSLoadMessage(Node* node) {
+ ExternalReference message_address =
+ ExternalReference::address_of_pending_message_obj(isolate());
+ node->RemoveInput(NodeProperties::FirstContextIndex(node));
+ node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address));
+ node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0));
+ NodeProperties::ChangeOp(node, machine()->Load(kMachAnyTagged));
+}
+
+
+void JSGenericLowering::LowerJSStoreMessage(Node* node) {
+ ExternalReference message_address =
+ ExternalReference::address_of_pending_message_obj(isolate());
+ node->RemoveInput(NodeProperties::FirstContextIndex(node));
+ node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address));
+ node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0));
+ StoreRepresentation representation(kMachAnyTagged, kNoWriteBarrier);
+ NodeProperties::ChangeOp(node, machine()->Store(representation));
+}
+
+
void JSGenericLowering::LowerJSYield(Node* node) { UNIMPLEMENTED(); }
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698