OLD | NEW |
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 int32_t value, RelocInfo::Mode rmode) { | 691 int32_t value, RelocInfo::Mode rmode) { |
692 return new (zone()) Operator1<RelocatablePtrConstantInfo>( // -- | 692 return new (zone()) Operator1<RelocatablePtrConstantInfo>( // -- |
693 IrOpcode::kRelocatableInt32Constant, Operator::kPure, // opcode | 693 IrOpcode::kRelocatableInt32Constant, Operator::kPure, // opcode |
694 "RelocatableInt32Constant", // name | 694 "RelocatableInt32Constant", // name |
695 0, 0, 0, 1, 0, 0, // counts | 695 0, 0, 0, 1, 0, 0, // counts |
696 RelocatablePtrConstantInfo(value, rmode)); // parameter | 696 RelocatablePtrConstantInfo(value, rmode)); // parameter |
697 } | 697 } |
698 | 698 |
699 const Operator* CommonOperatorBuilder::RelocatableInt64Constant( | 699 const Operator* CommonOperatorBuilder::RelocatableInt64Constant( |
700 int64_t value, RelocInfo::Mode rmode) { | 700 int64_t value, RelocInfo::Mode rmode) { |
701 return new (zone()) Operator1<RelocatablePtrConstantInfo>( // -- | 701 return new (zone()) Operator1<RelocatablePtrConstantInfo>( // -- |
702 IrOpcode::kRelocatableInt64Constant, Operator::kPure, // opcode | 702 IrOpcode::kRelocatableInt64Constant, Operator::kPure, // opcode |
703 "RelocatableInt64Constant", // name | 703 "RelocatableInt64Constant", // name |
704 0, 0, 0, 1, 0, 0, // counts | 704 0, 0, 0, 1, 0, 0, // counts |
705 RelocatablePtrConstantInfo(value, rmode)); // parameter | 705 RelocatablePtrConstantInfo(static_cast<intptr_t>(value), // parameter |
| 706 rmode)); |
706 } | 707 } |
707 | 708 |
708 const Operator* CommonOperatorBuilder::Select(MachineRepresentation rep, | 709 const Operator* CommonOperatorBuilder::Select(MachineRepresentation rep, |
709 BranchHint hint) { | 710 BranchHint hint) { |
710 return new (zone()) Operator1<SelectParameters>( // -- | 711 return new (zone()) Operator1<SelectParameters>( // -- |
711 IrOpcode::kSelect, Operator::kPure, // opcode | 712 IrOpcode::kSelect, Operator::kPure, // opcode |
712 "Select", // name | 713 "Select", // name |
713 3, 0, 0, 1, 0, 0, // counts | 714 3, 0, 0, 1, 0, 0, // counts |
714 SelectParameters(rep, hint)); // parameter | 715 SelectParameters(rep, hint)); // parameter |
715 } | 716 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 CommonOperatorBuilder::CreateFrameStateFunctionInfo( | 899 CommonOperatorBuilder::CreateFrameStateFunctionInfo( |
899 FrameStateType type, int parameter_count, int local_count, | 900 FrameStateType type, int parameter_count, int local_count, |
900 Handle<SharedFunctionInfo> shared_info) { | 901 Handle<SharedFunctionInfo> shared_info) { |
901 return new (zone()->New(sizeof(FrameStateFunctionInfo))) | 902 return new (zone()->New(sizeof(FrameStateFunctionInfo))) |
902 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info); | 903 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info); |
903 } | 904 } |
904 | 905 |
905 } // namespace compiler | 906 } // namespace compiler |
906 } // namespace internal | 907 } // namespace internal |
907 } // namespace v8 | 908 } // namespace v8 |
OLD | NEW |