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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 2395783002: Revert of [turbofan] Osr value typing + dynamic type checks on entry. (Closed)
Patch Set: Created 4 years, 2 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/js-frame-specialization.cc » ('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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 1716
1717 void InstructionSelector::VisitIfException(Node* node) { 1717 void InstructionSelector::VisitIfException(Node* node) {
1718 OperandGenerator g(this); 1718 OperandGenerator g(this);
1719 DCHECK_EQ(IrOpcode::kCall, node->InputAt(1)->opcode()); 1719 DCHECK_EQ(IrOpcode::kCall, node->InputAt(1)->opcode());
1720 Emit(kArchNop, g.DefineAsLocation(node, ExceptionLocation())); 1720 Emit(kArchNop, g.DefineAsLocation(node, ExceptionLocation()));
1721 } 1721 }
1722 1722
1723 1723
1724 void InstructionSelector::VisitOsrValue(Node* node) { 1724 void InstructionSelector::VisitOsrValue(Node* node) {
1725 OperandGenerator g(this); 1725 OperandGenerator g(this);
1726 int index = OsrValueIndexOf(node->op()); 1726 int index = OpParameter<int>(node);
1727 Emit(kArchNop, 1727 Emit(kArchNop,
1728 g.DefineAsLocation(node, linkage()->GetOsrValueLocation(index))); 1728 g.DefineAsLocation(node, linkage()->GetOsrValueLocation(index)));
1729 } 1729 }
1730 1730
1731 1731
1732 void InstructionSelector::VisitPhi(Node* node) { 1732 void InstructionSelector::VisitPhi(Node* node) {
1733 const int input_count = node->op()->ValueInputCount(); 1733 const int input_count = node->op()->ValueInputCount();
1734 PhiInstruction* phi = new (instruction_zone()) 1734 PhiInstruction* phi = new (instruction_zone())
1735 PhiInstruction(instruction_zone(), GetVirtualRegister(node), 1735 PhiInstruction(instruction_zone(), GetVirtualRegister(node),
1736 static_cast<size_t>(input_count)); 1736 static_cast<size_t>(input_count));
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 return new (instruction_zone()) FrameStateDescriptor( 2099 return new (instruction_zone()) FrameStateDescriptor(
2100 instruction_zone(), state_info.type(), state_info.bailout_id(), 2100 instruction_zone(), state_info.type(), state_info.bailout_id(),
2101 state_info.state_combine(), parameters, locals, stack, 2101 state_info.state_combine(), parameters, locals, stack,
2102 state_info.shared_info(), outer_state); 2102 state_info.shared_info(), outer_state);
2103 } 2103 }
2104 2104
2105 2105
2106 } // namespace compiler 2106 } // namespace compiler
2107 } // namespace internal 2107 } // namespace internal
2108 } // namespace v8 2108 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/js-frame-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698