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

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: 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
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 73b6078d841f7118940a8b5a26ee5c155e528c1c..18bbbf0d6bcb2c4cbc6fb09e6ad69b132fc2bed5 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -2389,6 +2389,15 @@ class RepresentationSelector {
case IrOpcode::kEnsureWritableFastElements:
return VisitBinop(node, UseInfo::AnyTagged(),
MachineRepresentation::kTagged);
+ case IrOpcode::kMaybeGrowFastElements: {
+ ProcessInput(node, 0, UseInfo::AnyTagged());
+ ProcessInput(node, 1, UseInfo::AnyTagged());
+ ProcessInput(node, 2, UseInfo::TruncatingWord32());
+ ProcessInput(node, 3, UseInfo::TruncatingWord32());
Jarin 2016/08/08 08:03:47 Again, the magic indices are not helping readabili
Benedikt Meurer 2016/08/08 08:12:56 Done.
+ ProcessRemainingInputs(node, 4);
+ SetOutput(node, MachineRepresentation::kTagged);
+ return;
+ }
//------------------------------------------------------------------
// Machine-level operators.

Powered by Google App Engine
This is Rietveld 408576698