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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/simplified-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/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/address-map.h" 9 #include "src/address-map.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 return; 2378 return;
2379 } 2379 }
2380 case IrOpcode::kCheckMaps: 2380 case IrOpcode::kCheckMaps:
2381 case IrOpcode::kTransitionElementsKind: { 2381 case IrOpcode::kTransitionElementsKind: {
2382 VisitInputs(node); 2382 VisitInputs(node);
2383 return SetOutput(node, MachineRepresentation::kNone); 2383 return SetOutput(node, MachineRepresentation::kNone);
2384 } 2384 }
2385 case IrOpcode::kEnsureWritableFastElements: 2385 case IrOpcode::kEnsureWritableFastElements:
2386 return VisitBinop(node, UseInfo::AnyTagged(), 2386 return VisitBinop(node, UseInfo::AnyTagged(),
2387 MachineRepresentation::kTagged); 2387 MachineRepresentation::kTagged);
2388 case IrOpcode::kMaybeGrowFastElements: {
2389 ProcessInput(node, 0, UseInfo::AnyTagged()); // object
2390 ProcessInput(node, 1, UseInfo::AnyTagged()); // elements
2391 ProcessInput(node, 2, UseInfo::TruncatingWord32()); // index
2392 ProcessInput(node, 3, UseInfo::TruncatingWord32()); // length
2393 ProcessRemainingInputs(node, 4);
2394 SetOutput(node, MachineRepresentation::kTagged);
2395 return;
2396 }
2388 2397
2389 //------------------------------------------------------------------ 2398 //------------------------------------------------------------------
2390 // Machine-level operators. 2399 // Machine-level operators.
2391 //------------------------------------------------------------------ 2400 //------------------------------------------------------------------
2392 case IrOpcode::kLoad: { 2401 case IrOpcode::kLoad: {
2393 // TODO(jarin) Eventually, we should get rid of all machine stores 2402 // TODO(jarin) Eventually, we should get rid of all machine stores
2394 // from the high-level phases, then this becomes UNREACHABLE. 2403 // from the high-level phases, then this becomes UNREACHABLE.
2395 LoadRepresentation rep = LoadRepresentationOf(node->op()); 2404 LoadRepresentation rep = LoadRepresentationOf(node->op());
2396 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer 2405 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer
2397 ProcessInput(node, 1, UseInfo::PointerInt()); // index 2406 ProcessInput(node, 1, UseInfo::PointerInt()); // index
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
3306 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3315 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3307 Operator::kNoProperties); 3316 Operator::kNoProperties);
3308 to_number_operator_.set(common()->Call(desc)); 3317 to_number_operator_.set(common()->Call(desc));
3309 } 3318 }
3310 return to_number_operator_.get(); 3319 return to_number_operator_.get();
3311 } 3320 }
3312 3321
3313 } // namespace compiler 3322 } // namespace compiler
3314 } // namespace internal 3323 } // namespace internal
3315 } // namespace v8 3324 } // namespace v8
OLDNEW
« 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