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 #ifndef V8_COMPILER_INSTRUCTION_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_H_ |
6 #define V8_COMPILER_INSTRUCTION_H_ | 6 #define V8_COMPILER_INSTRUCTION_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 typedef ZoneDeque<Instruction*> InstructionDeque; | 1016 typedef ZoneDeque<Instruction*> InstructionDeque; |
1017 typedef ZoneDeque<ReferenceMap*> ReferenceMapDeque; | 1017 typedef ZoneDeque<ReferenceMap*> ReferenceMapDeque; |
1018 typedef ZoneVector<FrameStateDescriptor*> DeoptimizationVector; | 1018 typedef ZoneVector<FrameStateDescriptor*> DeoptimizationVector; |
1019 typedef ZoneVector<InstructionBlock*> InstructionBlocks; | 1019 typedef ZoneVector<InstructionBlock*> InstructionBlocks; |
1020 | 1020 |
1021 struct PrintableInstructionSequence; | 1021 struct PrintableInstructionSequence; |
1022 | 1022 |
1023 | 1023 |
1024 // Represents architecture-specific generated code before, during, and after | 1024 // Represents architecture-specific generated code before, during, and after |
1025 // register allocation. | 1025 // register allocation. |
1026 // TODO(titzer): s/IsDouble/IsFloat64/ | |
1027 class InstructionSequence final : public ZoneObject { | 1026 class InstructionSequence final : public ZoneObject { |
1028 public: | 1027 public: |
1029 static InstructionBlocks* InstructionBlocksFor(Zone* zone, | 1028 static InstructionBlocks* InstructionBlocksFor(Zone* zone, |
1030 const Schedule* schedule); | 1029 const Schedule* schedule); |
1031 // Puts the deferred blocks last. | 1030 // Puts the deferred blocks last. |
1032 static void ComputeAssemblyOrder(InstructionBlocks* blocks); | 1031 static void ComputeAssemblyOrder(InstructionBlocks* blocks); |
1033 | 1032 |
1034 InstructionSequence(Isolate* isolate, Zone* zone, | 1033 InstructionSequence(Isolate* isolate, Zone* zone, |
1035 InstructionBlocks* instruction_blocks); | 1034 InstructionBlocks* instruction_blocks); |
1036 | 1035 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 | 1205 |
1207 | 1206 |
1208 std::ostream& operator<<(std::ostream& os, | 1207 std::ostream& operator<<(std::ostream& os, |
1209 const PrintableInstructionSequence& code); | 1208 const PrintableInstructionSequence& code); |
1210 | 1209 |
1211 } // namespace compiler | 1210 } // namespace compiler |
1212 } // namespace internal | 1211 } // namespace internal |
1213 } // namespace v8 | 1212 } // namespace v8 |
1214 | 1213 |
1215 #endif // V8_COMPILER_INSTRUCTION_H_ | 1214 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |