| 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_CODE_GENERATOR_H_ | 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_ |
| 6 #define V8_COMPILER_CODE_GENERATOR_H_ | 6 #define V8_COMPILER_CODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/instruction.h" | 9 #include "src/compiler/instruction.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Check if a heap object can be materialized by loading from the frame, which | 78 // Check if a heap object can be materialized by loading from the frame, which |
| 79 // is usually way cheaper than materializing the actual heap object constant. | 79 // is usually way cheaper than materializing the actual heap object constant. |
| 80 bool IsMaterializableFromFrame(Handle<HeapObject> object, int* slot_return); | 80 bool IsMaterializableFromFrame(Handle<HeapObject> object, int* slot_return); |
| 81 // Check if a heap object can be materialized by loading from a heap root, | 81 // Check if a heap object can be materialized by loading from a heap root, |
| 82 // which is cheaper on some platforms than materializing the actual heap | 82 // which is cheaper on some platforms than materializing the actual heap |
| 83 // object constant. | 83 // object constant. |
| 84 bool IsMaterializableFromRoot(Handle<HeapObject> object, | 84 bool IsMaterializableFromRoot(Handle<HeapObject> object, |
| 85 Heap::RootListIndex* index_return); | 85 Heap::RootListIndex* index_return); |
| 86 | 86 |
| 87 // Assemble instructions for the specified block. |
| 88 void AssembleBlock(const InstructionBlock* block); |
| 89 |
| 87 // Assemble code for the specified instruction. | 90 // Assemble code for the specified instruction. |
| 88 void AssembleInstruction(Instruction* instr, const InstructionBlock* block); | 91 void AssembleInstruction(Instruction* instr, const InstructionBlock* block); |
| 89 void AssembleSourcePosition(Instruction* instr); | 92 void AssembleSourcePosition(Instruction* instr); |
| 90 void AssembleGaps(Instruction* instr); | 93 void AssembleGaps(Instruction* instr); |
| 91 | 94 |
| 92 // =========================================================================== | 95 // =========================================================================== |
| 93 // ============= Architecture-specific code generation methods. ============== | 96 // ============= Architecture-specific code generation methods. ============== |
| 94 // =========================================================================== | 97 // =========================================================================== |
| 95 | 98 |
| 96 void AssembleArchInstruction(Instruction* instr); | 99 void AssembleArchInstruction(Instruction* instr); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 JumpTable* jump_tables_; | 235 JumpTable* jump_tables_; |
| 233 OutOfLineCode* ools_; | 236 OutOfLineCode* ools_; |
| 234 int osr_pc_offset_; | 237 int osr_pc_offset_; |
| 235 }; | 238 }; |
| 236 | 239 |
| 237 } // namespace compiler | 240 } // namespace compiler |
| 238 } // namespace internal | 241 } // namespace internal |
| 239 } // namespace v8 | 242 } // namespace v8 |
| 240 | 243 |
| 241 #endif // V8_COMPILER_CODE_GENERATOR_H | 244 #endif // V8_COMPILER_CODE_GENERATOR_H |
| OLD | NEW |