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

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

Issue 2164573003: [turbofan] Introduce a TransitionElementsKind simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix the runtime fallback. Created 4 years, 5 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/opcodes.h ('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 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 ProcessRemainingInputs(node, 1); 2124 ProcessRemainingInputs(node, 1);
2125 SetOutput(node, MachineRepresentation::kWord32); 2125 SetOutput(node, MachineRepresentation::kWord32);
2126 if (lower()) DeferReplacement(node, node->InputAt(0)); 2126 if (lower()) DeferReplacement(node, node->InputAt(0));
2127 } else { 2127 } else {
2128 ProcessInput(node, 0, UseInfo::AnyTagged()); 2128 ProcessInput(node, 0, UseInfo::AnyTagged());
2129 ProcessRemainingInputs(node, 1); 2129 ProcessRemainingInputs(node, 1);
2130 SetOutput(node, MachineRepresentation::kTagged); 2130 SetOutput(node, MachineRepresentation::kTagged);
2131 } 2131 }
2132 return; 2132 return;
2133 } 2133 }
2134 case IrOpcode::kTransitionElementsKind: {
2135 VisitInputs(node);
2136 return SetOutput(node, MachineRepresentation::kNone);
2137 }
2134 2138
2135 //------------------------------------------------------------------ 2139 //------------------------------------------------------------------
2136 // Machine-level operators. 2140 // Machine-level operators.
2137 //------------------------------------------------------------------ 2141 //------------------------------------------------------------------
2138 case IrOpcode::kLoad: { 2142 case IrOpcode::kLoad: {
2139 // TODO(jarin) Eventually, we should get rid of all machine stores 2143 // TODO(jarin) Eventually, we should get rid of all machine stores
2140 // from the high-level phases, then this becomes UNREACHABLE. 2144 // from the high-level phases, then this becomes UNREACHABLE.
2141 LoadRepresentation rep = LoadRepresentationOf(node->op()); 2145 LoadRepresentation rep = LoadRepresentationOf(node->op());
2142 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer 2146 ProcessInput(node, 0, UseInfo::AnyTagged()); // tagged pointer
2143 ProcessInput(node, 1, UseInfo::PointerInt()); // index 2147 ProcessInput(node, 1, UseInfo::PointerInt()); // index
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
3369 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3373 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3370 Operator::kNoProperties); 3374 Operator::kNoProperties);
3371 to_number_operator_.set(common()->Call(desc)); 3375 to_number_operator_.set(common()->Call(desc));
3372 } 3376 }
3373 return to_number_operator_.get(); 3377 return to_number_operator_.get();
3374 } 3378 }
3375 3379
3376 } // namespace compiler 3380 } // namespace compiler
3377 } // namespace internal 3381 } // namespace internal
3378 } // namespace v8 3382 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698