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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 | 873 |
874 | 874 |
875 const Operator* CommonOperatorBuilder::NumberConstant(volatile double value) { | 875 const Operator* CommonOperatorBuilder::NumberConstant(volatile double value) { |
876 return new (zone()) Operator1<double>( // -- | 876 return new (zone()) Operator1<double>( // -- |
877 IrOpcode::kNumberConstant, Operator::kPure, // opcode | 877 IrOpcode::kNumberConstant, Operator::kPure, // opcode |
878 "NumberConstant", // name | 878 "NumberConstant", // name |
879 0, 0, 0, 1, 0, 0, // counts | 879 0, 0, 0, 1, 0, 0, // counts |
880 value); // parameter | 880 value); // parameter |
881 } | 881 } |
882 | 882 |
| 883 const Operator* CommonOperatorBuilder::PointerConstant(intptr_t value) { |
| 884 return new (zone()) Operator1<intptr_t>( // -- |
| 885 IrOpcode::kPointerConstant, Operator::kPure, // opcode |
| 886 "PointerConstant", // name |
| 887 0, 0, 0, 1, 0, 0, // counts |
| 888 value); // parameter |
| 889 } |
883 | 890 |
884 const Operator* CommonOperatorBuilder::HeapConstant( | 891 const Operator* CommonOperatorBuilder::HeapConstant( |
885 const Handle<HeapObject>& value) { | 892 const Handle<HeapObject>& value) { |
886 return new (zone()) Operator1<Handle<HeapObject>>( // -- | 893 return new (zone()) Operator1<Handle<HeapObject>>( // -- |
887 IrOpcode::kHeapConstant, Operator::kPure, // opcode | 894 IrOpcode::kHeapConstant, Operator::kPure, // opcode |
888 "HeapConstant", // name | 895 "HeapConstant", // name |
889 0, 0, 0, 1, 0, 0, // counts | 896 0, 0, 0, 1, 0, 0, // counts |
890 value); // parameter | 897 value); // parameter |
891 } | 898 } |
892 | 899 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 CommonOperatorBuilder::CreateFrameStateFunctionInfo( | 1136 CommonOperatorBuilder::CreateFrameStateFunctionInfo( |
1130 FrameStateType type, int parameter_count, int local_count, | 1137 FrameStateType type, int parameter_count, int local_count, |
1131 Handle<SharedFunctionInfo> shared_info) { | 1138 Handle<SharedFunctionInfo> shared_info) { |
1132 return new (zone()->New(sizeof(FrameStateFunctionInfo))) | 1139 return new (zone()->New(sizeof(FrameStateFunctionInfo))) |
1133 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info); | 1140 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info); |
1134 } | 1141 } |
1135 | 1142 |
1136 } // namespace compiler | 1143 } // namespace compiler |
1137 } // namespace internal | 1144 } // namespace internal |
1138 } // namespace v8 | 1145 } // namespace v8 |
OLD | NEW |