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 <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 private: | 35 private: |
36 MacroAssembler* masm() { return &masm_; } | 36 MacroAssembler* masm() { return &masm_; } |
37 GapResolver* resolver() { return &resolver_; } | 37 GapResolver* resolver() { return &resolver_; } |
38 SafepointTableBuilder* safepoints() { return &safepoints_; } | 38 SafepointTableBuilder* safepoints() { return &safepoints_; } |
39 Zone* zone() const { return code()->zone(); } | 39 Zone* zone() const { return code()->zone(); } |
40 | 40 |
41 // Checks if {block} will appear directly after {current_block_} when | 41 // Checks if {block} will appear directly after {current_block_} when |
42 // assembling code, in which case, a fall-through can be used. | 42 // assembling code, in which case, a fall-through can be used. |
43 bool IsNextInAssemblyOrder(const BasicBlock* block) const { | 43 bool IsNextInAssemblyOrder(const BasicBlock* block) const { |
44 return block->rpo_number_ == (current_block_->rpo_number_ + 1) && | 44 return block->rpo_number() == (current_block_->rpo_number() + 1) && |
45 block->deferred_ == current_block_->deferred_; | 45 block->deferred() == current_block_->deferred(); |
46 } | 46 } |
47 | 47 |
48 // Record a safepoint with the given pointer map. | 48 // Record a safepoint with the given pointer map. |
49 void RecordSafepoint(PointerMap* pointers, Safepoint::Kind kind, | 49 void RecordSafepoint(PointerMap* pointers, Safepoint::Kind kind, |
50 int arguments, Safepoint::DeoptMode deopt_mode); | 50 int arguments, Safepoint::DeoptMode deopt_mode); |
51 | 51 |
52 // Assemble code for the specified instruction. | 52 // Assemble code for the specified instruction. |
53 void AssembleInstruction(Instruction* instr); | 53 void AssembleInstruction(Instruction* instr); |
54 void AssembleSourcePosition(SourcePositionInstruction* instr); | 54 void AssembleSourcePosition(SourcePositionInstruction* instr); |
55 void AssembleGap(GapInstruction* gap); | 55 void AssembleGap(GapInstruction* gap); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ZoneDeque<Handle<Object> > deoptimization_literals_; | 129 ZoneDeque<Handle<Object> > deoptimization_literals_; |
130 TranslationBuffer translations_; | 130 TranslationBuffer translations_; |
131 int last_lazy_deopt_pc_; | 131 int last_lazy_deopt_pc_; |
132 }; | 132 }; |
133 | 133 |
134 } // namespace compiler | 134 } // namespace compiler |
135 } // namespace internal | 135 } // namespace internal |
136 } // namespace v8 | 136 } // namespace v8 |
137 | 137 |
138 #endif // V8_COMPILER_CODE_GENERATOR_H | 138 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |