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

Side by Side Diff: src/compiler/common-operator.cc

Issue 1015423002: [turbofan] Remember types for deoptimization during simplified lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments Created 5 years, 9 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.h ('k') | src/compiler/instruction-selector.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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 break; 597 break;
598 } 598 }
599 // Uncached. 599 // Uncached.
600 return new (zone()) Operator( // -- 600 return new (zone()) Operator( // --
601 IrOpcode::kStateValues, Operator::kPure, // opcode 601 IrOpcode::kStateValues, Operator::kPure, // opcode
602 "StateValues", // name 602 "StateValues", // name
603 arguments, 0, 0, 1, 0, 0); // counts 603 arguments, 0, 0, 1, 0, 0); // counts
604 } 604 }
605 605
606 606
607 const Operator* CommonOperatorBuilder::TypedStateValues(
608 const ZoneVector<MachineType>* types) {
609 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // --
610 IrOpcode::kTypedStateValues, Operator::kPure, // opcode
611 "TypedStateValues", // name
612 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts
613 }
614
615
607 const Operator* CommonOperatorBuilder::FrameState( 616 const Operator* CommonOperatorBuilder::FrameState(
608 FrameStateType type, BailoutId bailout_id, 617 FrameStateType type, BailoutId bailout_id,
609 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) { 618 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) {
610 return new (zone()) Operator1<FrameStateCallInfo>( // -- 619 return new (zone()) Operator1<FrameStateCallInfo>( // --
611 IrOpcode::kFrameState, Operator::kPure, // opcode 620 IrOpcode::kFrameState, Operator::kPure, // opcode
612 "FrameState", // name 621 "FrameState", // name
613 4, 0, 0, 1, 0, 0, // counts 622 4, 0, 0, 1, 0, 0, // counts
614 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction)); 623 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction));
615 } 624 }
616 625
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } else { 678 } else {
670 UNREACHABLE(); 679 UNREACHABLE();
671 return nullptr; 680 return nullptr;
672 } 681 }
673 } 682 }
674 683
675 684
676 } // namespace compiler 685 } // namespace compiler
677 } // namespace internal 686 } // namespace internal
678 } // namespace v8 687 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698