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/node.h" | 10 #include "src/compiler/node.h" |
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 bitmask.CountReal() == static_cast<int>(types->size())); | 1241 bitmask.CountReal() == static_cast<int>(types->size())); |
1242 #endif | 1242 #endif |
1243 | 1243 |
1244 return new (zone()) Operator1<TypedStateValueInfo>( // -- | 1244 return new (zone()) Operator1<TypedStateValueInfo>( // -- |
1245 IrOpcode::kTypedStateValues, Operator::kPure, // opcode | 1245 IrOpcode::kTypedStateValues, Operator::kPure, // opcode |
1246 "TypedStateValues", // name | 1246 "TypedStateValues", // name |
1247 static_cast<int>(types->size()), 0, 0, 1, 0, 0, // counts | 1247 static_cast<int>(types->size()), 0, 0, 1, 0, 0, // counts |
1248 TypedStateValueInfo(types, bitmask)); // parameters | 1248 TypedStateValueInfo(types, bitmask)); // parameters |
1249 } | 1249 } |
1250 | 1250 |
| 1251 const Operator* CommonOperatorBuilder::ArgumentsObjectState() { |
| 1252 return new (zone()) Operator( // -- |
| 1253 IrOpcode::kArgumentsObjectState, Operator::kPure, // opcode |
| 1254 "ArgumentsObjectState", // name |
| 1255 0, 0, 0, 1, 0, 0); // counts |
| 1256 } |
| 1257 |
1251 const Operator* CommonOperatorBuilder::ObjectState(int pointer_slots) { | 1258 const Operator* CommonOperatorBuilder::ObjectState(int pointer_slots) { |
1252 return new (zone()) Operator1<int>( // -- | 1259 return new (zone()) Operator1<int>( // -- |
1253 IrOpcode::kObjectState, Operator::kPure, // opcode | 1260 IrOpcode::kObjectState, Operator::kPure, // opcode |
1254 "ObjectState", // name | 1261 "ObjectState", // name |
1255 pointer_slots, 0, 0, 1, 0, 0, // counts | 1262 pointer_slots, 0, 0, 1, 0, 0, // counts |
1256 pointer_slots); // parameter | 1263 pointer_slots); // parameter |
1257 } | 1264 } |
1258 | 1265 |
1259 const Operator* CommonOperatorBuilder::TypedObjectState( | 1266 const Operator* CommonOperatorBuilder::TypedObjectState( |
1260 const ZoneVector<MachineType>* types) { | 1267 const ZoneVector<MachineType>* types) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 CommonOperatorBuilder::CreateFrameStateFunctionInfo( | 1364 CommonOperatorBuilder::CreateFrameStateFunctionInfo( |
1358 FrameStateType type, int parameter_count, int local_count, | 1365 FrameStateType type, int parameter_count, int local_count, |
1359 Handle<SharedFunctionInfo> shared_info) { | 1366 Handle<SharedFunctionInfo> shared_info) { |
1360 return new (zone()->New(sizeof(FrameStateFunctionInfo))) | 1367 return new (zone()->New(sizeof(FrameStateFunctionInfo))) |
1361 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info); | 1368 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info); |
1362 } | 1369 } |
1363 | 1370 |
1364 } // namespace compiler | 1371 } // namespace compiler |
1365 } // namespace internal | 1372 } // namespace internal |
1366 } // namespace v8 | 1373 } // namespace v8 |
OLD | NEW |