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

Side by Side Diff: src/compiler/effect-control-linearizer.cc

Issue 2022033004: [turbofan] Rename {CheckPoint} to {Checkpoint} everywhere. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-checkpoint-reduce
Patch Set: Created 4 years, 6 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/common-operator.cc ('k') | src/compiler/opcodes.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/effect-control-linearizer.h" 5 #include "src/compiler/effect-control-linearizer.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/access-builder.h" 8 #include "src/compiler/access-builder.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // Remove the end markers of 'atomic' allocation region because the 287 // Remove the end markers of 'atomic' allocation region because the
288 // region should be wired-in now. 288 // region should be wired-in now.
289 if (node->opcode() == IrOpcode::kFinishRegion || 289 if (node->opcode() == IrOpcode::kFinishRegion ||
290 node->opcode() == IrOpcode::kBeginRegion) { 290 node->opcode() == IrOpcode::kBeginRegion) {
291 // Update the value uses to the value input of the finish node and 291 // Update the value uses to the value input of the finish node and
292 // the effect uses to the effect input. 292 // the effect uses to the effect input.
293 return RemoveRegionNode(node); 293 return RemoveRegionNode(node);
294 } 294 }
295 295
296 // Special treatment for CheckPoint nodes. 296 // Special treatment for checkpoint nodes.
297 // TODO(epertoso): Pickup the current frame state. 297 // TODO(epertoso): Pickup the current frame state.
298 if (node->opcode() == IrOpcode::kCheckPoint) { 298 if (node->opcode() == IrOpcode::kCheckpoint) {
299 // Unlink the check point; effect uses will be updated to the incoming 299 // Unlink the check point; effect uses will be updated to the incoming
300 // effect that is passed. 300 // effect that is passed.
301 node->Kill(); 301 node->Kill();
302 return; 302 return;
303 } 303 }
304 304
305 if (node->opcode() == IrOpcode::kIfSuccess) { 305 if (node->opcode() == IrOpcode::kIfSuccess) {
306 // We always schedule IfSuccess with its call, so skip it here. 306 // We always schedule IfSuccess with its call, so skip it here.
307 DCHECK_EQ(IrOpcode::kCall, node->InputAt(0)->opcode()); 307 DCHECK_EQ(IrOpcode::kCall, node->InputAt(0)->opcode());
308 // The IfSuccess node should not belong to an exceptional call node 308 // The IfSuccess node should not belong to an exceptional call node
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 return jsgraph()->Int32Constant(Smi::kMaxValue); 983 return jsgraph()->Int32Constant(Smi::kMaxValue);
984 } 984 }
985 985
986 Node* EffectControlLinearizer::SmiShiftBitsConstant() { 986 Node* EffectControlLinearizer::SmiShiftBitsConstant() {
987 return jsgraph()->IntPtrConstant(kSmiShiftSize + kSmiTagSize); 987 return jsgraph()->IntPtrConstant(kSmiShiftSize + kSmiTagSize);
988 } 988 }
989 989
990 } // namespace compiler 990 } // namespace compiler
991 } // namespace internal 991 } // namespace internal
992 } // namespace v8 992 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698