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

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 2218703003: [turbofan] Add support for copy-on-write element 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 unified diff | Download patch
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 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 ProcessRemainingInputs(node, 1); 2383 ProcessRemainingInputs(node, 1);
2384 SetOutput(node, MachineRepresentation::kTagged); 2384 SetOutput(node, MachineRepresentation::kTagged);
2385 } 2385 }
2386 return; 2386 return;
2387 } 2387 }
2388 case IrOpcode::kCheckMaps: 2388 case IrOpcode::kCheckMaps:
2389 case IrOpcode::kTransitionElementsKind: { 2389 case IrOpcode::kTransitionElementsKind: {
2390 VisitInputs(node); 2390 VisitInputs(node);
2391 return SetOutput(node, MachineRepresentation::kNone); 2391 return SetOutput(node, MachineRepresentation::kNone);
2392 } 2392 }
2393 case IrOpcode::kEnsureWritableFastElements:
2394 return VisitBinop(node, UseInfo::AnyTagged(),
2395 MachineRepresentation::kTagged);
2393 2396
2394 //------------------------------------------------------------------ 2397 //------------------------------------------------------------------
2395 // Machine-level operators. 2398 // Machine-level operators.
2396 //------------------------------------------------------------------ 2399 //------------------------------------------------------------------
2397 case IrOpcode::kLoad: { 2400 case IrOpcode::kLoad: {
2398 // TODO(jarin) Eventually, we should get rid of all machine stores 2401 // TODO(jarin) Eventually, we should get rid of all machine stores
2399 // from the high-level phases, then this becomes UNREACHABLE. 2402 // from the high-level phases, then this becomes UNREACHABLE.
2400 LoadRepresentation rep = LoadRepresentationOf(node->op()); 2403 LoadRepresentation rep = LoadRepresentationOf(node->op());
2401 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer 2404 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer
2402 ProcessInput(node, 1, UseInfo::PointerInt()); // index 2405 ProcessInput(node, 1, UseInfo::PointerInt()); // index
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
3673 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3676 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3674 Operator::kNoProperties); 3677 Operator::kNoProperties);
3675 to_number_operator_.set(common()->Call(desc)); 3678 to_number_operator_.set(common()->Call(desc));
3676 } 3679 }
3677 return to_number_operator_.get(); 3680 return to_number_operator_.get();
3678 } 3681 }
3679 3682
3680 } // namespace compiler 3683 } // namespace compiler
3681 } // namespace internal 3684 } // namespace internal
3682 } // namespace v8 3685 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698