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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2227493002: [turbofan] Add initial support for growing stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comments. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index f5e636546a8bf62efc0f2783c0c69931fc8f5ce7..e91ff0c13b3f32f01dea6595d7a9a09b049b4a0d 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -2385,6 +2385,15 @@ class RepresentationSelector {
case IrOpcode::kEnsureWritableFastElements:
return VisitBinop(node, UseInfo::AnyTagged(),
MachineRepresentation::kTagged);
+ case IrOpcode::kMaybeGrowFastElements: {
+ ProcessInput(node, 0, UseInfo::AnyTagged()); // object
+ ProcessInput(node, 1, UseInfo::AnyTagged()); // elements
+ ProcessInput(node, 2, UseInfo::TruncatingWord32()); // index
+ ProcessInput(node, 3, UseInfo::TruncatingWord32()); // length
+ ProcessRemainingInputs(node, 4);
+ SetOutput(node, MachineRepresentation::kTagged);
+ return;
+ }
//------------------------------------------------------------------
// Machine-level operators.
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698